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

志愿者完善到答题模块

... ... @@ -280,6 +280,7 @@ class SecondController extends RestBaseController
* @throws
*/
public function commitAnswer(){
$user_id=$this->getUserId();
$class_id=input('class_id');
$answer_info=input('answer_info');
$answer_info1= htmlspecialchars_decode($answer_info);
... ... @@ -299,9 +300,10 @@ class SecondController extends RestBaseController
if (empty($answer)){
/*添加信息*/
/*添加用户时长*/
$volunteer=new VolunteerModel();
$volunteer->where('user_id',$user_id)->setInc('work_time',$question['work_time']);
/*添加到完成*/
$this->success('回答成功');
}else{
$this->error('问题回答错误');
... ...