...
|
...
|
@@ -363,12 +363,12 @@ class SecondController extends RestBaseController |
|
|
/*添加信息*/
|
|
|
/*添加用户时长*/
|
|
|
$volunteer=new VolunteerModel();
|
|
|
$volunteer->where('user_id',$user_id)->setInc('work_time',$class['study_time']);
|
|
|
$volunteer->addWorkTime($user_id,$class['study_time']);
|
|
|
$volunteer->where('user_id',$user_id)->setInc('work_time',$class['work_time']);
|
|
|
$volunteer->addWorkTime($user_id,$class['work_time']);
|
|
|
/*添加到完成*/
|
|
|
$UserPassModel=new UserPassModel();
|
|
|
$UserPassModel->pass($user_id,$class_id);
|
|
|
$return['time']=$class['study_time'];
|
|
|
$return['time']=$class['work_time'];
|
|
|
$this->success('回答成功',$return);
|
|
|
}else{
|
|
|
$info['answer']=$ClassQuesion->getClassQuesion($class_id);
|
...
|
...
|
|