1.修改电话号码格式为60前缀,马来西亚格式

2.优化渠道可以查看分红方式,可以查看游玩详情
This commit is contained in:
2026-05-30 11:09:54 +08:00
parent 28d0100d5a
commit e65c3474bd
37 changed files with 1772 additions and 113 deletions

View File

@@ -6,6 +6,7 @@ namespace app\api\controller;
use app\common\facade\Token;
use app\common\library\Auth as UserAuth;
use app\common\library\MalaysiaMobilePhone;
use app\common\model\User;
use app\common\service\MobileAuthDeviceService;
use ba\Random;
@@ -38,7 +39,7 @@ class Auth extends MobileBase
if ($inviteCode === '') {
return $this->mobileError(1001, 'Invite code required');
}
if (!preg_match('/^1[3-9]\d{9}$/', $username)) {
if (!MalaysiaMobilePhone::isValid($username)) {
return $this->mobileError(1003, 'Please enter the correct mobile number');
}