wangbin пре 2 година
родитељ
комит
398234c656
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      service/task/game_task.go

+ 3 - 0
service/task/game_task.go

@@ -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
 }