diff --git a/app/controllers/homework_common_controller.rb b/app/controllers/homework_common_controller.rb index 698f29c56..8b37ca8e4 100644 --- a/app/controllers/homework_common_controller.rb +++ b/app/controllers/homework_common_controller.rb @@ -97,7 +97,7 @@ class HomeworkCommonController < ApplicationController # http.request(req) # end - uri = URI('http://test.gitlab.trustie.net/api/questions.json') + uri = URI('http://192.168.80.21:8080/api/questions.json') body = question.to_json res = Net::HTTP.new(uri.host, uri.port).start do |client| request = Net::HTTP::Post.new(uri.path) diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 2d8403fa2..5b6de453e 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -121,7 +121,7 @@ class StudentWorkController < ApplicationController if stundet_work.save if @homework.homework_type == 2 && @homework.homework_detail_programing #编程作业,学生提交作品后计算系统得分 - url = "http://test.gitlab.trustie.net/api/questions/#{@homework.homework_detail_programing.question_id}/solutions.json" + url = "http://192.168.80.21:8080/api/questions/#{@homework.homework_detail_programing.question_id}/solutions.json" solutions = { stundet_work_id:stundet_work.id, src:stundet_work.description,