调整任务存储,任务查询
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user