|
|
@@ -1257,5 +1257,8 @@ func (apiService *GameTask) TemporaryTask(ctx context.Context, pcCode string) (t
|
|
|
return temporaryConf, errors.New("没有任务数据")
|
|
|
}
|
|
|
err = global.GVA_DB.Model(&task.CentralControlConf{}).Where("task_id", taskId).First(&temporaryConf).Error
|
|
|
+ if err == nil {
|
|
|
+ global.GVA_REDIS.Del(ctx, key)
|
|
|
+ }
|
|
|
return temporaryConf, err
|
|
|
}
|