|
|
|
@ -167,6 +167,7 @@ func GameBet(c *gin.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
betResp := base.SessionBet(betReq) |
|
|
|
betResp := base.SessionBet(betReq) |
|
|
|
if betResp.Code != base.CodeOk { |
|
|
|
if betResp.Code != base.CodeOk { |
|
|
|
|
|
|
|
log.Error("sn gameBetResp err,%s:%v", account, betResp.Code) |
|
|
|
resp.Code = INVALIDREQUESTERR |
|
|
|
resp.Code = INVALIDREQUESTERR |
|
|
|
if betResp.Code == base.CodeAccepted { |
|
|
|
if betResp.Code == base.CodeAccepted { |
|
|
|
resp.Msg = "duplicate order" |
|
|
|
resp.Msg = "duplicate order" |
|
|
|
@ -175,7 +176,6 @@ func GameBet(c *gin.Context) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
resp.Msg = "operation failed." |
|
|
|
resp.Msg = "operation failed." |
|
|
|
} |
|
|
|
} |
|
|
|
log.Error("sn gameBetResp err,%s:%v", account, resp.Code) |
|
|
|
|
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
resp.Data.DeductionAmount = betAmount |
|
|
|
resp.Data.DeductionAmount = betAmount |
|
|
|
|