fix: 调整接口参数 trade_type 非必须

This commit is contained in:
zhiqiang.wang
2025-06-19 20:29:43 +08:00
parent 185e14c41d
commit 3590deeb04
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
package app
// Version 版本号说明 1.0.0 代表主版本号.功能版本号.修订号
const Version = "1.20.3"
const Version = "1.20.4"
+1 -3
View File
@@ -68,9 +68,7 @@ func createTransaction(ctx *gin.Context) {
var tradeType, ok = data["trade_type"]
if !ok {
ctx.JSON(200, respFailJson("交易类型参数(trade_type)不存在"))
return
tradeType = model.OrderTradeTypeUsdtTrc20 // 默认 USDT TRC20
}
if !help.InStrings(tradeType.(string), model.SupportTradeTypes) {