From 4f93e7123adf23c360c665f072847085e500f690 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Wed, 20 Nov 2019 14:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E8=B4=A6=E5=8F=B7=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/UserController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index f395d98a..bec5b006 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -852,7 +852,7 @@ class UserController extends BaseController } else {//用户1 if(strlen($user['account']) < 6 || strlen($user['account']) > 15){ $this -> set_message(1027, "fail", "账号长度为6-15位"); - }elseif(!preg_match('/^(?![^a-zA-Z]+$)(?!\D+$)$/', $user['account'])){ + }elseif(!preg_match('/^[0-9]+[a-zA-Z]+[0-9a-zA-Z]*|[a-zA-Z]+[0-9]+[0-9a-zA-Z]*$/', $user['account'])){ $this -> set_message(1027, "fail", "账号必须字母数字组合"); } $result = $userApi -> sdk_register_($user['account'], $user['password'], 1, 1, $user['promote_id'], get_promote_name($user['promote_id']), $phone = "", $user["game_id"], get_game_name($user["game_id"]), $user['sdk_version'] ,$user['device_type'],$user['unique_code']);