|
|
|
@ -825,7 +825,6 @@ class UserController extends BaseController
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//注册信息
|
|
|
|
|
private function reg_data($user, $type = 1)
|
|
|
|
|
{
|
|
|
|
@ -851,7 +850,7 @@ class UserController extends BaseController
|
|
|
|
|
$result = $userApi -> sdk_register_($user['account'], $user['password'], 1, 7, $user['promote_id'], get_promote_name($user['promote_id']), '', $user["game_id"], get_game_name($user["game_id"]), $user['sdk_version'] ,$user['device_type'],$user['unique_code']);
|
|
|
|
|
|
|
|
|
|
} else {//用户1
|
|
|
|
|
if(strlen($user['account']) < 6 || len($user['account']) > 15){
|
|
|
|
|
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'])){
|
|
|
|
|
$this -> set_message(1027, "fail", "账号必须字母数字组合");
|
|
|
|
|