fix
This commit is contained in:
parent
83ac739c6d
commit
408e33cd24
@ -373,7 +373,7 @@ func (gca *GiftCodeApi) UseCode(c *gin.Context) {
|
||||
|
||||
if rspObj.CodeStatus == 0 && codeinfo.Limit > 0 {
|
||||
codeinfo.Count++
|
||||
err := f5.GetApp().GetOrmDb(constant.ACCOUNT_DB).Table(codeinfo.TableName()).Where("gameid = ?", req.GameId).Where("gift_code = '?'", req.Code).UpdateColumn("count", codeinfo.Count).Error
|
||||
err := f5.GetApp().GetOrmDb(constant.ACCOUNT_DB).Table(codeinfo.TableName()).Where("gameid = ?", req.GameId).Where("gift_code = ?", req.Code).UpdateColumn("count", codeinfo.Count).Error
|
||||
if err != nil {
|
||||
f5.GetSysLog().Error("update gift code error:%s, %s", req.AccountId, req.Code)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user