From ece317d6fae82a1e0ec753cf96a0dc0705a24673 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 22 Oct 2019 14:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/QueryController.class.php | 12 ++++++------ Application/Home/View/default/Query/arpu.html | 6 ++++++ .../Home/View/default/Query/userRecharges.html | 11 +++++++++-- .../Home/View/default/Query/userRoles.html | 11 +++++++++-- Public/Home/js/common.js | 15 ++++++++++++++- 5 files changed, 44 insertions(+), 11 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 2e2f7d35a..8c36d5835 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1920,8 +1920,8 @@ class QueryController extends BaseController $userAccount = I('user_account', ''); $promoteId = I('promote_id', 0); $sdkVersion = I('sdk_version', 0); - $costBegin = I('cost_begin', 0); - $costEnd = I('cost_end', 0); + $costBegin = I('cost_begin', ''); + $costEnd = I('cost_end', ''); $headmanPromoteId = I('headman_promote_id', 0); $promote = $this->getLoginPromote(); @@ -1985,13 +1985,13 @@ class QueryController extends BaseController $spendMap['promote_id'] = $promoteId; } } - if ($costBegin > 0 || $costEnd > 0) { + if ($costBegin != '' || $costEnd != '') { $having = ''; - if ($costBegin > 0 && $costEnd > 0) { + if ($costBegin != '' && $costEnd != '') { $having = 'sum(cost) between ' . $costBegin . ' and ' . $costEnd; - } elseif ($costBegin > 0 && $costEnd == 0) { + } elseif ($costBegin != '' && $costEnd == '') { $having = 'sum(cost) > ' . $costBegin; - } elseif ($costBegin == 0 && $costEnd > 0) { + } elseif ($costBegin == '' && $costEnd != '') { $having = 'sum(cost) < ' . $costEnd; } $subMap = $map; diff --git a/Application/Home/View/default/Query/arpu.html b/Application/Home/View/default/Query/arpu.html index 13c28b900..cbd0971e5 100644 --- a/Application/Home/View/default/Query/arpu.html +++ b/Application/Home/View/default/Query/arpu.html @@ -289,6 +289,12 @@ var gameId = $('#game-select').val(); }) function getSubPromotes(parentId, defaultPromoteId) { + if (parentId == 0) { + var options = '' + $('#promote-select').html(options) + $("#promote-select").val(defaultPromoteId).trigger("change") + return + } $.ajax({ url: "{:U('Query/getSubPromotes')}", dataType: 'json', diff --git a/Application/Home/View/default/Query/userRecharges.html b/Application/Home/View/default/Query/userRecharges.html index b9fcd08f4..6f1819ea5 100644 --- a/Application/Home/View/default/Query/userRecharges.html +++ b/Application/Home/View/default/Query/userRecharges.html @@ -75,9 +75,9 @@ -->
- + - +
@@ -141,6 +141,7 @@ + +