|
@@ -77,9 +77,6 @@ class MemberService extends BaseService
|
|
|
$parentWalletUrl = isset($parentInfo['wallet_url']) ? $parentInfo['wallet_url'] : '';
|
|
|
|
|
|
$ip = get_client_ip();
|
|
|
- $ipData = ToolService::make()->getIpAddress($ip, '');
|
|
|
- $province = isset($ipData['regionName']) ? $ipData['regionName'] : '';
|
|
|
- $city = isset($ipData['city']) ? $ipData['city'] : '';
|
|
|
/* TODO 注册 */
|
|
|
if (empty($info)) {
|
|
|
// 上级账号
|
|
@@ -125,7 +122,6 @@ class MemberService extends BaseService
|
|
|
'pledge_auto' => 1,
|
|
|
'code' => strtoupper(get_random_code(9, 'S', "{$id}")),
|
|
|
'login_ip' => $ip,
|
|
|
- 'login_region' => $province . '' . $city,
|
|
|
'login_time' => time(),
|
|
|
'create_time' => time(),
|
|
|
'trade_status' => 1,
|
|
@@ -175,18 +171,12 @@ class MemberService extends BaseService
|
|
|
|
|
|
$updateData = [
|
|
|
'login_ip' => $ip,
|
|
|
- 'login_region' => $province . '' . $city,
|
|
|
'login_time' => time(),
|
|
|
'update_time' => time(),
|
|
|
];
|
|
|
if ($info['wallet_token'] == '') {
|
|
|
$updateData['wallet_token'] = make_wallet_token($walletUrl, $userId);
|
|
|
}
|
|
|
- if(empty($info['recharge_url'])){
|
|
|
- $info['recharge_url'] = CregisPayService::make()->createAddress(1000);
|
|
|
- $info['recharge_token'] = $info['recharge_url']?make_wallet_token($info['recharge_url'], $userId) : '';
|
|
|
- }
|
|
|
- $this->model->where(['id' => $userId])->update($updateData);
|
|
|
}
|
|
|
|
|
|
// 获取授权TOKEN
|