|
|
@ -6,6 +6,7 @@ use User\Api\SuserApi;
|
|
|
|
use Think\Log;
|
|
|
|
use Think\Log;
|
|
|
|
use Base\Service\ApplyService;
|
|
|
|
use Base\Service\ApplyService;
|
|
|
|
use Base\Tool\TaskClient;
|
|
|
|
use Base\Tool\TaskClient;
|
|
|
|
|
|
|
|
use Base\Facade\Request;
|
|
|
|
|
|
|
|
|
|
|
|
class CommonController extends BaseController {
|
|
|
|
class CommonController extends BaseController {
|
|
|
|
const USER_NOT_ILLEGAL = -1; //用户名不合法
|
|
|
|
const USER_NOT_ILLEGAL = -1; //用户名不合法
|
|
|
@ -208,6 +209,8 @@ class CommonController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$data = [
|
|
|
|
$data = [
|
|
|
|
'account' => $account,
|
|
|
|
'account' => $account,
|
|
|
|
'password' => think_ucenter_md5($password, UC_AUTH_KEY),
|
|
|
|
'password' => think_ucenter_md5($password, UC_AUTH_KEY),
|
|
|
@ -222,8 +225,14 @@ class CommonController extends BaseController {
|
|
|
|
'parent_name' => get_parent_name($promote_id),
|
|
|
|
'parent_name' => get_parent_name($promote_id),
|
|
|
|
'register_time' => time(),
|
|
|
|
'register_time' => time(),
|
|
|
|
'check_time' => time(),
|
|
|
|
'check_time' => time(),
|
|
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Request::isIOS()) {
|
|
|
|
|
|
|
|
$data['device_type'] = 2;
|
|
|
|
|
|
|
|
} elseif (Request::isAndroid()) {
|
|
|
|
|
|
|
|
$data['device_type'] = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($game_id) {//关联游戏
|
|
|
|
if ($game_id) {//关联游戏
|
|
|
|
$game = M('game', 'tab_')->where(['id' => $game_id])->find();
|
|
|
|
$game = M('game', 'tab_')->where(['id' => $game_id])->find();
|
|
|
|
if ($game) {
|
|
|
|
if ($game) {
|
|
|
|