diff --git a/app/views/student_works/shixun_work_report.json.jbuilder b/app/views/student_works/shixun_work_report.json.jbuilder index e3a515e7a..f6ca05bec 100644 --- a/app/views/student_works/shixun_work_report.json.jbuilder +++ b/app/views/student_works/shixun_work_report.json.jbuilder @@ -7,7 +7,7 @@ if @shixun json.shixun_name @shixun.name # 总体评价 json.overall_appraisal @work.overall_appraisal - json.myself_experience @work.myshixun.try(:total_score) + json.myself_experience @work.myshixun.try(:total_score).to_i json.total_experience @shixun.all_score json.work_score number_with_precision @work.work_score, precision: 1 json.all_work_score number_with_precision 100, precision: 1 @@ -28,7 +28,7 @@ if @shixun json.is_delay game ? student_work_is_delay?(@homework, game) : false json.open_time myshixun_open_time game json.evaluate_count game ? game&.evaluate_count : 0 - json.finished_time game ? finished_time game.end_time : "--" + json.finished_time game ? finished_time(game.end_time) : "--" json.time_consuming time_consuming game json.myself_experience game ? game&.final_score : 0 json.experience challenge.all_score