diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 1d40415c8..78c12c382 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -124,7 +124,7 @@ class StudentWorkController < ApplicationController if @homework.homework_type == 2 && @homework.homework_detail_programing #编程作业,学生提交作品后计算系统得分 url = "http://192.168.80.21:8080/api/questions/#{@homework.homework_detail_programing.question_id}/solutions.json" solutions = { - stundet_work_id:stundet_work.id, + student_work_id:stundet_work.id, src:Base64.encode64(stundet_work.description), language:1 }