|
@@ -126,6 +126,11 @@ class WithDrawInfoController
|
|
|
// 获取绑定手机号
|
|
// 获取绑定手机号
|
|
|
$phone = DB::table(TableName::QPAccountsDB() . 'AccountPhone')->where('UserID', $UserID)->value('PhoneNum');
|
|
$phone = DB::table(TableName::QPAccountsDB() . 'AccountPhone')->where('UserID', $UserID)->value('PhoneNum');
|
|
|
$phone = trim($phone);
|
|
$phone = trim($phone);
|
|
|
|
|
+ // 去掉国家号前缀
|
|
|
|
|
+ $countryCode = (string) env('COUNTRY_CODE', '1');
|
|
|
|
|
+ if ($countryCode !== '' && strpos($phone, $countryCode) === 0) {
|
|
|
|
|
+ $phone = substr($phone, mb_strlen($countryCode));
|
|
|
|
|
+ }
|
|
|
$retval['bind_phone'] = $phone;
|
|
$retval['bind_phone'] = $phone;
|
|
|
$hasSuccessWithdraw = DB::table('QPAccountsDB.dbo.OrderWithDraw')
|
|
$hasSuccessWithdraw = DB::table('QPAccountsDB.dbo.OrderWithDraw')
|
|
|
->lock('WITH(NOLOCK)')
|
|
->lock('WITH(NOLOCK)')
|