diff --git a/Application/Admin/View/Support/lists.html b/Application/Admin/View/Support/lists.html
index 8c82c84d7..f5619647f 100644
--- a/Application/Admin/View/Support/lists.html
+++ b/Application/Admin/View/Support/lists.html
@@ -32,7 +32,7 @@
-
扶持号管理
+
资源管理
- 说明:此功能是扶持号管理<的功能
+ 说明:此功能是资源管理的功能
说明:此功是查看并管理混服申请的功能
@@ -101,7 +101,7 @@
角色名称 |
设备信息 |
状态 |
-
创建时间 |
+
创建时间 |
操作 |
diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php
index 012598ebe..0a524b649 100644
--- a/Application/Home/Controller/DownloadController.class.php
+++ b/Application/Home/Controller/DownloadController.class.php
@@ -3178,7 +3178,7 @@ class DownloadController extends BaseController {
unset($map['costbegin']);
unset($map['costend']);
$nowTime = strtotime(date('Y-m-d 00:00:00', time()));
- $subMap['create_time'] = ['between', [$map['begintime'], $map['endtime'] - 1]];
+ $subMap['create_time'] = ['between', [$map['begintime'], $map['endtime']-1]];
if ($costBegin != '' || $costEnd != '') {
$having = '';
if ($costBegin != '' && $costEnd != '') {
@@ -3196,7 +3196,7 @@ class DownloadController extends BaseController {
$map['_string'] = 'ui.role_id in (' . $subQuery . ')';
}
$secondDay = 24*3600 + 1;
- $map['uc.create_time'] = ['between', [$map['begintime'], $map['endtime'] - $secondDay]];
+ $map['uc.create_time'] = ['between', [$map['begintime'], $map['endtime']-1]];
unset($map['begintime']);
unset($map['endtime']);
//$spendMap['_string'] = 'uc.game_id = tab_user_play_info.game_id and uc.server_id = tab_user_play_info.server_id and uc.role_id = tab_user_play_info.role_id';
diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php
index 71aba2c4c..2ab422f72 100644
--- a/Application/Home/Controller/QueryController.class.php
+++ b/Application/Home/Controller/QueryController.class.php
@@ -1114,6 +1114,7 @@ class QueryController extends BaseController
$summaryData = [];
$dayList = $this->getDayList($begTime, $endTime);
+ $dayListReverse = $dayList;
$dayList = array_reverse($dayList);
$params['dayList'] = $dayList;
@@ -1185,7 +1186,9 @@ class QueryController extends BaseController
$allData['spend_binding'] = bcadd($allData['spend_binding'], $spendBindingList[$day], 2);
$allData['spend_discount'] = bcadd($allData['spend_discount'], 0, 2);
$allData['spend_voucher'] = bcadd($allData['spend_voucher'], 0, 2);
-
+ }
+ foreach ($dayListReverse as $day) {
+ $date = date('Ymd', strtotime($day));
$summaryData['date'][] = $date;
$summaryData['role_num'][] = $roleNumList[$day];
$summaryData['user_num'][] = $userNumList[$day];
@@ -1783,13 +1786,16 @@ class QueryController extends BaseController
$ids[] = $queryPromote['id'];
$map = ['uc.promote_id' => ['in', $ids]];
+ $subMap = ['promote_id' => ['in', $ids]];
if ($relationGameId != 0 || $sdkVersion != 0) {
$gameIds = gameSearch($relationGameId, $sdkVersion);
$map['uc.game_id'] = ['in', $gameIds];
+ $subMap['game_id'] = ['in', $gameIds];
}
if ($serverId != 0) {
$map['uc.server_id'] = $serverId;
+ $subMap['server_id'] = $serverId;
}
if ($roleName != '') {
$map['ui.role_name'] = ['like', $roleName . '%'];
@@ -1865,10 +1871,15 @@ class QueryController extends BaseController
list($records, $pagination, $count) = $this->paginate($query);
- $total = M('user_play_data_count', 'tab_')->alias('uc')
+ $totalQuery = M('user_play_data_count', 'tab_')->alias('uc')
->field($fieldUC)
- ->join('left join tab_user_play_info as ui on ui.game_id = uc.game_id and ui.server_id = uc.server_id and ui.role_id = uc.role_id')
+ ->join('left join tab_user_play_info as ui on ui.user_id = uc.user_id and ui.game_id = uc.game_id and uc.server_id = ui.server_id and ui.role_id = uc.role_id')
+ ->group('uc.role_id,uc.game_id,uc.server_id,uc.user_id')
->where($map)
+ ->buildSql();
+ $total = M()->alias('totals')
+ ->table($totalQuery)
+ ->field('sum(recharge_cost) recharge_cost,sum(recharge_count) recharge_count,sum(recharge_cost_today) as recharge_cost_today')
->find();
foreach ($records as &$list) {