作者 sgj
1 个管道 的构建 通过 耗费 0 秒

接口完成

... ... @@ -58,12 +58,19 @@ class MemberCenterController extends RestBaseController
$user = $userModel->findData(array('id'=>$user_id));
if(empty($result)){
$is_submit = 0;
}else{
$user['lever']=$result['level']??'1';
$user['work_time']=$result['work_time']??'0';
}else {
$is_submit = 1;
}
if (empty($result['level'])){
$result['level']=0;
}
if (empty($result['work_time'])){
$result['work_time']=0;
}
$user['level']=$result['level'];
$user['work_time']=$result['work_time'];
$user['is_submit'] = $is_submit;
$this->success('获取成功!',$user);
}
... ...