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

打卡状态编辑

... ... @@ -49,6 +49,12 @@ class VolunteerModel extends Model
/*添加团队工时*/
}
public function addStudyTime($userId,$time){
$map['user_id']=$userId;
$this->where($map)->setInc('study_time',$time);
/*添加团队工时*/
}
/**
* 获取用户详情
* @param $userId
... ...
... ... @@ -365,6 +365,7 @@ class SecondController extends RestBaseController
$volunteer=new VolunteerModel();
$volunteer->where('user_id',$user_id)->setInc('work_time',$class['work_time']);
$volunteer->addWorkTime($user_id,$class['work_time']);
$volunteer->addStudyTime($user_id,$class['work_time']);
/*添加到完成*/
$UserPassModel=new UserPassModel();
$UserPassModel->pass($user_id,$class_id);
... ...