调整任务查询
This commit is contained in:
@ -448,7 +448,7 @@ func (s *sTask) GetTaskList(ctx context.Context, in *model.GetTaskListV2In) (out
|
|||||||
var data []model.GameTask
|
var data []model.GameTask
|
||||||
if in.IsBound == 0 {
|
if in.IsBound == 0 {
|
||||||
// 未绑定游戏查询自己数据库
|
// 未绑定游戏查询自己数据库
|
||||||
err := dao.Tasks.Ctx(ctx).Where(do.Tasks{GameId: in.Gid, StoreId: in.StoreId, NetbarAcconut: in.NetBarAccount}).WithAll().WithAll().Scan(&tasks)
|
err := dao.Tasks.Ctx(ctx).Where(do.Tasks{GameId: in.Gid, NetbarAcconut: in.NetBarAccount}).WithAll().WithAll().Scan(&tasks)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, ecode.Fail.Sub("获取任务列表失败")
|
return nil, ecode.Fail.Sub("获取任务列表失败")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user