作者 sgj
1 个管道 的构建 失败 耗费 0 秒

打卡状态编辑

@@ -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);