feat(base): 兑换金币功能增加免费金币处理 用户兑换金币时同时处理免费金币的转换逻辑, 调用DuihuanFreeGold方法进行免费金币兑换 fix(player): 任务查询条件从task_id 500改为600 修改CanShop方法中的任务ID查询条件, 将硬编码的任务ID从500更正为600以匹配业务需求 ```
This commit is contained in:
@@ -183,6 +183,7 @@ func (c *BaseSysUserController) DuihuanGold(ctx context.Context, req *DuihuanGol
|
||||
res = cool.Fail("余额不足")
|
||||
return
|
||||
}
|
||||
|
||||
service.NewBaseSysUserService().DuihuanFreeGold(uint32(t.UserId), int64(req.Gold*100))
|
||||
res = cool.Ok(nil)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user