正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -363,12 +363,12 @@ class SecondController extends RestBaseController | @@ -363,12 +363,12 @@ class SecondController extends RestBaseController | ||
363 | /*添加信息*/ | 363 | /*添加信息*/ |
364 | /*添加用户时长*/ | 364 | /*添加用户时长*/ |
365 | $volunteer=new VolunteerModel(); | 365 | $volunteer=new VolunteerModel(); |
366 | - $volunteer->where('user_id',$user_id)->setInc('work_time',$class['study_time']); | ||
367 | - $volunteer->addWorkTime($user_id,$class['study_time']); | 366 | + $volunteer->where('user_id',$user_id)->setInc('work_time',$class['work_time']); |
367 | + $volunteer->addWorkTime($user_id,$class['work_time']); | ||
368 | /*添加到完成*/ | 368 | /*添加到完成*/ |
369 | $UserPassModel=new UserPassModel(); | 369 | $UserPassModel=new UserPassModel(); |
370 | $UserPassModel->pass($user_id,$class_id); | 370 | $UserPassModel->pass($user_id,$class_id); |
371 | - $return['time']=$class['study_time']; | 371 | + $return['time']=$class['work_time']; |
372 | $this->success('回答成功',$return); | 372 | $this->success('回答成功',$return); |
373 | }else{ | 373 | }else{ |
374 | $info['answer']=$ClassQuesion->getClassQuesion($class_id); | 374 | $info['answer']=$ClassQuesion->getClassQuesion($class_id); |
-
请 注册 或 登录 后发表评论