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

添加积分处理基础类

... ... @@ -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('注册失败!');
... ...