...
|
...
|
@@ -37,7 +37,10 @@ class IndexController extends WeChatBaseController |
|
|
public function register()
|
|
|
{
|
|
|
/*检查用户是否注册成功*/
|
|
|
|
|
|
$user_id=cmf_get_current_user_id();
|
|
|
$User=new UserModel();
|
|
|
$user=$User->getMyself();
|
|
|
dump($user);
|
|
|
$Hospital = new HospitalModel();
|
|
|
$platform = $Hospital->getPlatment()->toArray();
|
|
|
$Job = new JobModel();
|
...
|
...
|
@@ -79,6 +82,7 @@ class IndexController extends WeChatBaseController |
|
|
$User=new UserModel();
|
|
|
$result=$User->register($user_id,$insert);
|
|
|
if ($result==1){
|
|
|
addScore($user_id,100,'注册完善信息');
|
|
|
$this->success('注册成功!');
|
|
|
}else{
|
|
|
$this->error('注册失败!');
|
...
|
...
|
|