pre_develop
jingquan huang 6 years ago
parent f1e83edd0b
commit 808779e9bf

@ -121,14 +121,12 @@ class CnmoocsService
myshixun.games.each do |game|
time += game.consumes_time_int
end
{error: 0, messages: '成功', data: {experiment: {time: time, score: score * 10}}}
{error: 0, messages: '成功', data: {experiment: {time: time, totalTime: score * 10}}}
else
{error: -1, messages: '用户还未开始学习此资源'}
end
end
private
def shixun_data shixuns
shixun_list = []

Loading…
Cancel
Save