...
|
...
|
@@ -9,6 +9,14 @@ use api\portal\service\ParamService; |
|
|
*/
|
|
|
class SignController extends RestBaseController
|
|
|
{
|
|
|
public function _initialize(){
|
|
|
if (empty(Db::name('user')->where('id',$this->getUserId())->find()['mobile'])){
|
|
|
$this->error(['code' => 10002, 'msg' => '用户未注册手机号']);
|
|
|
}
|
|
|
if (Db::name('user')->where('id',$this->getUserId())->find()['user_status']==0){
|
|
|
$this->error(['code' => 10003, 'msg' => '用户未填写注册信息']);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @title 首页接口
|
|
|
* @description 麦夫子首页渲染
|
...
|
...
|
|