Skip to content

Commit 8b8bddc

Browse files
committed
fix: 调整接口参数 trade_type 非必须
1 parent 185e14c commit 8b8bddc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package app
22

33
// Version 版本号说明 1.0.0 代表主版本号.功能版本号.修订号
4-
const Version = "1.20.3"
4+
const Version = "1.20.4"

app/web/epusdt.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ func createTransaction(ctx *gin.Context) {
6868

6969
var tradeType, ok = data["trade_type"]
7070
if !ok {
71-
ctx.JSON(200, respFailJson("交易类型参数(trade_type)不存在"))
72-
73-
return
71+
tradeType = model.OrderTradeTypeUsdtTrc20 // 默认 USDT TRC20
7472
}
7573

7674
if !help.InStrings(tradeType.(string), model.SupportTradeTypes) {

0 commit comments

Comments
 (0)