From 4f41651654e9f4d02f51f357a81048fb32de1be5 Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 13 Nov 2019 10:39:26 +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/PromoteCoinController.class.php | 5 +++--
Application/Home/View/default/Promote/children.html | 2 +-
.../Home/View/default/PromoteCoin/coinDetails.html | 2 +-
Application/Home/View/default/PromoteCoin/shift.html | 6 +++---
Application/Home/View/default/Public/promote_base.html | 8 ++++----
5 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/Application/Home/Controller/PromoteCoinController.class.php b/Application/Home/Controller/PromoteCoinController.class.php
index e35099eb0..ecc22e293 100644
--- a/Application/Home/Controller/PromoteCoinController.class.php
+++ b/Application/Home/Controller/PromoteCoinController.class.php
@@ -362,7 +362,8 @@ class PromoteCoinController extends BaseController
$startTime = I('time_end', '');
$endTime = I('time_start', '');
- $conditions = [];
+ $loginPromote = $this->getLoginPromote();
+ $conditions = ['promote_id' => $loginPromote['id']];
if ($startTime != '' || $endTime != '') {
if ($startTime != '') {
$conditions['create_time'] = ['egt', strtotime($startTime. ' 00:00:00')];
@@ -372,7 +373,7 @@ class PromoteCoinController extends BaseController
}
}
- $query = M('promote_coin_transfer_log', 'tab_')->where($conditions);
+ $query = M('promote_coin_transfer_log', 'tab_')->where($conditions)->order('create_time desc');
list($logs, $pagination, $count) = $this->paginate($query);
$service = new PromoteCoinTransferLogService();
diff --git a/Application/Home/View/default/Promote/children.html b/Application/Home/View/default/Promote/children.html
index d6e5badec..5f3dd1903 100644
--- a/Application/Home/View/default/Promote/children.html
+++ b/Application/Home/View/default/Promote/children.html
@@ -2,7 +2,7 @@
-
+
diff --git a/Application/Home/View/default/PromoteCoin/coinDetails.html b/Application/Home/View/default/PromoteCoin/coinDetails.html
index 398fdeeb5..10ef9f9ac 100644
--- a/Application/Home/View/default/PromoteCoin/coinDetails.html
+++ b/Application/Home/View/default/PromoteCoin/coinDetails.html
@@ -137,7 +137,7 @@