|
|
@@ -918,6 +918,21 @@ class GlobalController extends Controller
|
|
|
->selectRaw('RegisterDate,LastLogonDate,GameID,Compellation,Channel,NickName,UserID')
|
|
|
->paginate(100);
|
|
|
|
|
|
+ // 获取总充值和总提现
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ if (!empty($userIds)) {
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return view('admin.global.join_ip', ['list' => $list, 'id' => $id, 'ip' => $ip]);
|
|
|
} elseif ($id == 2) {
|
|
|
$userid = $request->UserID;
|
|
|
@@ -947,6 +962,22 @@ class GlobalController extends Controller
|
|
|
foreach ($list as &$value) {
|
|
|
$value->login_count = DB::table('QPRecordDB.dbo.RecordUserLogin')->where('UserID', $value->UserID)->count();
|
|
|
}
|
|
|
+
|
|
|
+ // 获取总充值和总提现
|
|
|
+ if (!empty($list)) {
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return view('admin.global.join_facility', ['list' => $list, 'mac' => implode(",",$mac), 'id' => $id]);
|
|
|
} elseif ($id == 3) {
|
|
|
|
|
|
@@ -956,6 +987,22 @@ class GlobalController extends Controller
|
|
|
->where('di.PhoneNum', $BankNo)
|
|
|
->selectRaw('RegisterDate,LastLogonDate,ai.GameID,Compellation,ai.Channel,ai.NickName,ai.UserID')
|
|
|
->paginate(10);
|
|
|
+
|
|
|
+ // 获取总充值和总提现
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ if (!empty($userIds)) {
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return view('admin.global.join_bankNo', ['list' => $list, 'id' => $id, 'BankNo' => $BankNo]);
|
|
|
} elseif ($id == 4) {
|
|
|
$BankNo = $request->BankUserName;
|
|
|
@@ -964,6 +1011,22 @@ class GlobalController extends Controller
|
|
|
->where('di.BankUserName', $BankNo)
|
|
|
->selectRaw('RegisterDate,LastLogonDate,ai.GameID,Compellation,Channel,ai.NickName,ai.UserID')
|
|
|
->paginate(10);
|
|
|
+
|
|
|
+ // 获取总充值和总提现
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ if (!empty($userIds)) {
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return view('admin.global.join_bankNo', ['list' => $list, 'id' => $id, 'BankNo' => $BankNo]);
|
|
|
} elseif ($id == 5) {
|
|
|
$BankNo = $request->EmailAddress;
|
|
|
@@ -972,6 +1035,22 @@ class GlobalController extends Controller
|
|
|
->where('di.EmailAddress', $BankNo)
|
|
|
->selectRaw('RegisterDate,LastLogonDate,ai.GameID,Compellation,Channel,ai.NickName,ai.UserID')
|
|
|
->paginate(100);
|
|
|
+
|
|
|
+ // 获取总充值和总提现
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ if (!empty($userIds)) {
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return view('admin.global.join_bankNo', ['list' => $list, 'id' => $id, 'BankNo' => $BankNo]);
|
|
|
} elseif ($id == 6) { // 关联IP
|
|
|
|
|
|
@@ -993,6 +1072,20 @@ class GlobalController extends Controller
|
|
|
->selectRaw('RegisterDate,LastLogonDate,GameID,Compellation,Channel,NickName,ai.UserID')
|
|
|
->paginate(1000);
|
|
|
|
|
|
+ // 获取总充值和总提现
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ if (!empty($userIds)) {
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
return view('admin.global.join_LastLogonIP', ['list' => $list, 'id' => $id, 'UserID' => $UserID]);
|
|
|
} elseif ($id == 7) { // 登录IP记录
|
|
|
@@ -1016,6 +1109,21 @@ class GlobalController extends Controller
|
|
|
->selectRaw('RegisterDate,LastLogonDate,GameID,Compellation,Channel,NickName,ai.UserID')
|
|
|
->paginate(1000);
|
|
|
|
|
|
+ // 获取总充值和总提现
|
|
|
+ $userIds = $list->pluck('UserID')->toArray();
|
|
|
+ if (!empty($userIds)) {
|
|
|
+ $accountsInfo = new AccountsInfo();
|
|
|
+ $statistics = $accountsInfo->accountTotalStatistics($userIds);
|
|
|
+ $statisticsMap = [];
|
|
|
+ foreach ($statistics as $stat) {
|
|
|
+ $statisticsMap[$stat->UserID] = $stat;
|
|
|
+ }
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ $item->Recharge = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Recharge : 0;
|
|
|
+ $item->Withdraw = isset($statisticsMap[$item->UserID]) ? $statisticsMap[$item->UserID]->Withdraw : 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return view('admin.global.join_bankNo', ['list' => $list, 'id' => $id, 'UserID' => $UserID, 'BankNo' => implode(",",$cpf)]);
|
|
|
}
|
|
|
}
|