优化数据归属问题

This commit is contained in:
2026-04-23 15:08:37 +08:00
parent 378be9909d
commit 0373234750
29 changed files with 1993 additions and 75 deletions

View File

@@ -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) {