|
|
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Admin;
|
|
|
|
|
|
|
|
|
use App\Facade\TableName;
|
|
|
+use App\Game\GlobalUserInfo;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
@@ -46,13 +47,16 @@ class CodeController
|
|
|
}
|
|
|
DB::table(TableName::QPAccountsDB() . 'AccountPhone')
|
|
|
->insert([
|
|
|
- 'PhoneNum' => (int)$post['PhoneNum'],
|
|
|
+ 'PhoneNum' => env('COUNTRY_CODE','1').$post['PhoneNum'],
|
|
|
'BindDate' => now(),
|
|
|
'LogonPass' => $post['LogonPass'],
|
|
|
'UserID' => $UserID,
|
|
|
'Channel' => $Channel,
|
|
|
]);
|
|
|
|
|
|
+
|
|
|
+ GlobalUserInfo::where('UserID', $UserID)->update([ 'Phone' => env('COUNTRY_CODE','1').$post['PhoneNum'], 'RegisterLocation' => env('COUNTRY_CODE','1')]);
|
|
|
+
|
|
|
return apiReturnSuc();
|
|
|
} else {
|
|
|
return view('admin.code.bind_phone', compact('UserID'));
|