diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 3317f0829..fe00088b5 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -902,8 +902,8 @@ class ProjectsController < ApplicationController # 如果完成则发送下一个任务直到任务结束 # TrainingTask.status 1 成功,2 失败 def training_task_status - status = params[:status].to_i - task_id = params[:task_id] + status = params[:code].to_i + task_id = params[:taskId] stage = params[:stage].to_i @training_task = TrainingTask.find(task_id) original_project_id = Project.find(@training_task.project_id).try(:forked_from_project_id)