...
|
...
|
@@ -29,7 +29,7 @@ class ShareController extends WeChatBaseController |
|
|
if(empty($my_user)){
|
|
|
$this->error('查询为空','','','');
|
|
|
}
|
|
|
if($my_user['is_pro'] != 1){
|
|
|
if($my_user['is_pro'] != 1 && $my_user['is_pro'] != ){
|
|
|
$this->error('无权限','','','');
|
|
|
}
|
|
|
if(empty($my_user['phone'])){
|
...
|
...
|
@@ -83,7 +83,7 @@ class ShareController extends WeChatBaseController |
|
|
$this->error('手机号不能为空');
|
|
|
}
|
|
|
$user_id = cmf_get_current_user_id();
|
|
|
$result = Db::name('my_user')->where('uid',$user_id)->insert($param);
|
|
|
$result = Db::name('my_user')->where('uid',$user_id)->update($param);
|
|
|
if(empty($result)){
|
|
|
$this->error('保存失败');
|
|
|
}else{
|
...
|
...
|
|