diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index eccd40bbe..0b2b62e69 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -239,7 +239,7 @@ class DownloadController extends BaseController { $queryPromote = $this->getQueryPromote($levelPromote); $loginPromote = $this->getLoginPromote(); - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -508,7 +508,7 @@ class DownloadController extends BaseController { * @author sunke */ public function testresource_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -574,7 +574,7 @@ class DownloadController extends BaseController { * @author sunke */ public function testresourcelists_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -644,7 +644,7 @@ class DownloadController extends BaseController { * @author sunke */ public function supportNumberList_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -710,7 +710,7 @@ class DownloadController extends BaseController { $gameId = I('game_id', 0); $serverId = I('server_id', 0); - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -800,7 +800,7 @@ class DownloadController extends BaseController { */ public function regist_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -877,11 +877,11 @@ class DownloadController extends BaseController { public function children_data_export() { $promoteType = intval(I('promote_type', 0)); $loginer = $this->getLoginPromote(); - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { - $map['promote_id'] = PID; + $map['id'] = PID; }else { foreach ($rs as $rsKey => $rsValue) { $id = $rsValue['id']; @@ -889,7 +889,7 @@ class DownloadController extends BaseController { } $childPromoteIds = rtrim($childPromoteIds, ','); $childPromoteIds .= ',' . PID; - $map['promote_id'] = ['in', $childPromoteIds]; + $map['id'] = ['in', $childPromoteIds]; } if ($promoteType == 0) { @@ -942,7 +942,7 @@ class DownloadController extends BaseController { * @author sunke */ public function coinrecord_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -1105,7 +1105,7 @@ class DownloadController extends BaseController { * @author sunke */ public function mycoin_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -1167,7 +1167,7 @@ class DownloadController extends BaseController { */ public function recharge_data_export() { - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -1259,7 +1259,7 @@ class DownloadController extends BaseController { $promoteId = I('promote_id', 0); $sdkVersion = I('sdk_version', 0); $headmanPromoteId = I('headman_promote_id', 0); - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -1436,7 +1436,7 @@ class DownloadController extends BaseController { $headmanPromoteId = I('headman_promote_id', 0); $playTime = I('play_time', ''); $promote = $this->getLoginPromote(); - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { @@ -1558,7 +1558,7 @@ class DownloadController extends BaseController { $begtime = I('begtime',''); $endtime = I('endtime',''); // $childPromoteIds = getAllChildPromoteList(3); - $map1['chain'] = ['like','%'.PID.'/'.'%']; + $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($rs)) { diff --git a/Application/Home/View/default/Finance/index.html b/Application/Home/View/default/Finance/index.html index 18355e200..c4a45b5f3 100644 --- a/Application/Home/View/default/Finance/index.html +++ b/Application/Home/View/default/Finance/index.html @@ -77,8 +77,10 @@
导出
+ +导出
+