调整任务存储,任务查询

This commit is contained in:
chy
2025-07-01 09:57:16 +08:00
parent 09e9ebe8c3
commit 2791322a76
12 changed files with 81 additions and 84 deletions

View File

@ -414,7 +414,7 @@ func (s *gamelifeClient) RequestActivity(ctx context.Context, in *model.QQNetbar
if err != nil {
return nil, err
}
var result model.GiftResponse
var result *model.GiftResponse
resp, err := client.R().
SetContext(ctx).
SetBody(in.GiftParam).
@ -423,7 +423,10 @@ func (s *gamelifeClient) RequestActivity(ctx context.Context, in *model.QQNetbar
if err != nil || resp.IsError() {
return nil, ecode.Fail.Sub("请求出现异常")
}
return &result, nil
if result == nil {
return nil, ecode.Fail.Sub("请求结果为空")
}
return result, nil
case consts.QueryUserGoodsList:
value, err := dao.Games.Ctx(ctx).Where(do.Games{GameId: in.GoodsParam.Gid}).Fields(dao.Games.Columns().GameCode).Value()
if err != nil {