fix: 调整接口参数 trade_type 非必须
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
package app
|
||||
|
||||
// Version 版本号说明 1.0.0 代表主版本号.功能版本号.修订号
|
||||
const Version = "1.20.3"
|
||||
const Version = "1.20.4"
|
||||
|
||||
+1
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user