|
|
|
@ -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 = []
|
|
|
|
|