优化数据归属问题
This commit is contained in:
@@ -62,6 +62,10 @@ class Auth extends MobileBase
|
||||
return $this->mobileError(2002, 'Invite code not bound to channel');
|
||||
}
|
||||
$extend['channel_id'] = (int) $channelId;
|
||||
$channelStatus = Db::name('channel')->where('id', (int) $channelId)->value('status');
|
||||
if (intval($channelStatus) !== 1) {
|
||||
return $this->mobileError(2002, 'Channel disabled');
|
||||
}
|
||||
|
||||
$registered = $this->auth->register($username, $password, $phone, $email, 1, $extend);
|
||||
if (!$registered) {
|
||||
|
||||
Reference in New Issue
Block a user