|
@@ -44,12 +44,19 @@ class PlayerControl extends BaseController
|
|
|
$game_ids = explode(",", $game_ids);
|
|
$game_ids = explode(",", $game_ids);
|
|
|
|
|
|
|
|
$unameList = [];
|
|
$unameList = [];
|
|
|
|
|
+ $emptyUnameList = [];
|
|
|
foreach ($account_ids as $account_id) {
|
|
foreach ($account_ids as $account_id) {
|
|
|
$account_id = trim($account_id);
|
|
$account_id = trim($account_id);
|
|
|
- if(!empty($account_id)) {
|
|
|
|
|
|
|
+ if(!empty($account_id) && is_int($account_id)) {
|
|
|
$unameList[] = $account_id;
|
|
$unameList[] = $account_id;
|
|
|
|
|
+ }else {
|
|
|
|
|
+ $emptyUnameList[] = $account_id;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if(!empty($emptyUnameList)) {
|
|
|
|
|
+ return json_error([], '不存在玩家:' . implode(",", $emptyUnameList));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$gameList = [];
|
|
$gameList = [];
|
|
|
foreach ($game_ids as $game_id) {
|
|
foreach ($game_ids as $game_id) {
|
|
|
$game_id = trim($game_id);
|
|
$game_id = trim($game_id);
|
|
@@ -79,8 +86,8 @@ class PlayerControl extends BaseController
|
|
|
$merchantsUserList = MerchantsUserModel::getPlayerListByIds($userInfo['merchant_id'], [
|
|
$merchantsUserList = MerchantsUserModel::getPlayerListByIds($userInfo['merchant_id'], [
|
|
|
['uname', 'in', $unameList]
|
|
['uname', 'in', $unameList]
|
|
|
]);
|
|
]);
|
|
|
- $merchantsUserList = array_column($merchantsUserList, null, 'uname');
|
|
|
|
|
|
|
|
|
|
|
|
+ $merchantsUserList = array_column($merchantsUserList, null, 'uname');
|
|
|
|
|
|
|
|
$merchantsUserIds = array_column($merchantsUserList, 'user_id');
|
|
$merchantsUserIds = array_column($merchantsUserList, 'user_id');
|
|
|
$userBalanceList = CommonMerchantUserAndBalance::getMerchantUserBalance($merchantsUserIds);
|
|
$userBalanceList = CommonMerchantUserAndBalance::getMerchantUserBalance($merchantsUserIds);
|