|
@@ -51,8 +51,8 @@ class GameStatis extends BaseController
|
|
|
foreach ($tempGameList as $game) {
|
|
foreach ($tempGameList as $game) {
|
|
|
$game_id = $game['game_id'];
|
|
$game_id = $game['game_id'];
|
|
|
$gameList[$game_id] = $game;
|
|
$gameList[$game_id] = $game;
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 格式化数据
|
|
// 格式化数据
|
|
|
foreach ($result['list'] as &$item) {
|
|
foreach ($result['list'] as &$item) {
|
|
|
$game_id = $item['game_id'];
|
|
$game_id = $item['game_id'];
|
|
@@ -111,7 +111,7 @@ class GameStatis extends BaseController
|
|
|
['merchant_id', '=', $userInfo['merchant_id']],
|
|
['merchant_id', '=', $userInfo['merchant_id']],
|
|
|
['game_id', 'in', $game_ids]
|
|
['game_id', 'in', $game_ids]
|
|
|
])
|
|
])
|
|
|
- ->field(['game_id','title','image', 'game_platform', 'rtp'])
|
|
|
|
|
|
|
+ ->field(['game_id','title','image', 'game_platform'])
|
|
|
->select()
|
|
->select()
|
|
|
->toArray();
|
|
->toArray();
|
|
|
|
|
|
|
@@ -125,8 +125,12 @@ class GameStatis extends BaseController
|
|
|
foreach ($result['list'] as &$item) {
|
|
foreach ($result['list'] as &$item) {
|
|
|
$game_id = $item['game_id'];
|
|
$game_id = $item['game_id'];
|
|
|
$gameInfo = $gameList[$game_id] ?? [];
|
|
$gameInfo = $gameList[$game_id] ?? [];
|
|
|
-
|
|
|
|
|
|
|
+ if (!empty($gameInfo))
|
|
|
|
|
+ {
|
|
|
|
|
+ $gameImages = CommonUtils::getGameDefaultImage($gameInfo);
|
|
|
|
|
+ }
|
|
|
// 游戏信息
|
|
// 游戏信息
|
|
|
|
|
+ $item['game_image_url'] = $gameImages['image_url'] ?? '';
|
|
|
$item['game_title'] = $gameInfo['title'] ?? '未知游戏';
|
|
$item['game_title'] = $gameInfo['title'] ?? '未知游戏';
|
|
|
$item['game_platform'] = CommonUtils::getGameTypeConfig($gameInfo['game_platform']);
|
|
$item['game_platform'] = CommonUtils::getGameTypeConfig($gameInfo['game_platform']);
|
|
|
$item['rtp'] = $gameInfo['rtp'] ?? '';
|
|
$item['rtp'] = $gameInfo['rtp'] ?? '';
|
|
@@ -207,7 +211,7 @@ class GameStatis extends BaseController
|
|
|
['merchant_id', '=', $userInfo['merchant_id']],
|
|
['merchant_id', '=', $userInfo['merchant_id']],
|
|
|
['game_id', 'in', $game_ids]
|
|
['game_id', 'in', $game_ids]
|
|
|
])
|
|
])
|
|
|
- ->field(['game_id','title', 'game_platform'])
|
|
|
|
|
|
|
+ ->field(['game_id','title','image', 'game_platform'])
|
|
|
->select()
|
|
->select()
|
|
|
->toArray();
|
|
->toArray();
|
|
|
|
|
|
|
@@ -222,7 +226,12 @@ class GameStatis extends BaseController
|
|
|
$game_id = $item['game_id'];
|
|
$game_id = $item['game_id'];
|
|
|
$gameInfo = $gameList[$game_id] ?? [];
|
|
$gameInfo = $gameList[$game_id] ?? [];
|
|
|
|
|
|
|
|
|
|
+ if (!empty($gameInfo))
|
|
|
|
|
+ {
|
|
|
|
|
+ $gameImages = CommonUtils::getGameDefaultImage($gameInfo);
|
|
|
|
|
+ }
|
|
|
// 游戏信息
|
|
// 游戏信息
|
|
|
|
|
+ $item['game_image_url'] = $gameImages['image_url'] ?? '';
|
|
|
$item['game_title'] = $gameInfo['title'] ?? '未知游戏';
|
|
$item['game_title'] = $gameInfo['title'] ?? '未知游戏';
|
|
|
$item['game_platform'] = CommonUtils::getGameTypeConfig($gameInfo['game_platform']);
|
|
$item['game_platform'] = CommonUtils::getGameTypeConfig($gameInfo['game_platform']);
|
|
|
|
|
|