diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 8b6c93ea7..532081b7c 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -84,7 +84,7 @@ class DownloadController extends BaseController { $res = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $childPromoteIds = ''; if(empty($res)) { - $map['tab_downloadlog.admin_id'] = PID; + $map['tab_downloadlog.promote_id'] = PID; }else { foreach ($res as $rsKey => $rsValue) { $id = $rsValue['id']; @@ -92,7 +92,7 @@ class DownloadController extends BaseController { } $childPromoteIds = rtrim($childPromoteIds, ','); $childPromoteIds .= ',' . PID; - $map['tab_downloadlog.admin_id'] = ['in', $childPromoteIds]; + $map['tab_downloadlog.promote_id'] = ['in', $childPromoteIds]; } $levelPromote = $this->getLevelPromote(); $queryPromote = $this->getQueryPromote($levelPromote); @@ -105,7 +105,7 @@ class DownloadController extends BaseController { $map = []; if (count($childPromoteIds) > 0) { - $map = ['admin_id' => ['in', $childPromoteIds]]; + $map = ['promote_id' => ['in', $childPromoteIds]]; } else { $map['_string'] = '1<>1'; } @@ -130,7 +130,7 @@ class DownloadController extends BaseController { $rs = M('downloadlog','tab_')->where($map)->order('tab_downloadlog.addtime desc') ->page($page, $row)->select(); foreach ($rs as $key => $value) { - $pid = intval($value['admin_id']); + $pid = intval($value['promote_id']); $getNameRs = M('promote','tab_')->field("real_name")->where(['id' => $pid])->find(); $rs[$key]['actor'] = $getNameRs['real_name']; } @@ -236,7 +236,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'dy_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/dailySummary', 'dataname' => '每日概况', 'status' => 0, @@ -291,7 +291,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'withdrawRecord'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Finance/withdrawRecord', 'dataname' => '提现记录', 'status' => 0, @@ -338,7 +338,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'withdrawDtl_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Finance/withdrawDtl', 'dataname' => '提现明细', 'status' => 0, @@ -384,7 +384,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'finance_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Finance/index', 'dataname' => '结算中心', 'status' => 0, @@ -456,7 +456,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'settlementDtl_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Finance/settlementDtl', 'dataname' => '结算明细', 'status' => 0, @@ -512,7 +512,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'test_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/TestResource/index', 'dataname' => '申请测试资源', 'status' => 0, @@ -572,7 +572,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'test_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/TestResource/lists', 'dataname' => '申请测试资源记录', 'status' => 0, @@ -619,7 +619,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'test_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/TestResource/supportNumberList', 'dataname' => '扶持号管理', 'status' => 0, @@ -682,7 +682,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'orderlist_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/CoinOrder/order_list', 'dataname' => '平台币充值', 'status' => 0, @@ -779,7 +779,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'zc_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/arpu', 'dataname' => 'ARPU统计', 'status' => 0, @@ -865,7 +865,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'zc_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/registe', 'dataname' => '注册明细数据', 'status' => 0, @@ -928,7 +928,7 @@ class DownloadController extends BaseController { $type = "/Home/Promote/children/promote_type/".$promoteType; $data = [ 'logid' => 'promote_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => $type, 'dataname' => '渠道管理', 'status' => 0, @@ -987,7 +987,7 @@ class DownloadController extends BaseController { $type = "/Home/PromoteCoin/transferLogs"; $data = [ 'logid' => 'cr_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => $type, 'dataname' => '平台币转移', 'status' => 0, @@ -1049,7 +1049,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'pt_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => "/Home/PromoteCoin/coinRecord", 'dataname' => '我的平台币明细', 'status' => 0, @@ -1112,7 +1112,7 @@ class DownloadController extends BaseController { $type = "/Home/PromoteCoin/myCoin"; $data = [ 'logid' => 'pt_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => $type, 'dataname' => '我的平台币', 'status' => 0, @@ -1211,7 +1211,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'cz_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/recharge', 'dataname' => '充值明细数据', 'status' => 0, @@ -1322,7 +1322,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'wj_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/userRecharges', 'dataname' => '充值玩家数据', 'status' => 0, @@ -1420,7 +1420,7 @@ class DownloadController extends BaseController { $addtime = time(); $data1 = [ 'logid' => 'tg_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/achievement', 'dataname' => '推广员业绩', 'status' => 0, @@ -1554,7 +1554,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'js_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/userRoles', 'dataname' => '角色查询数据', 'status' => 0, @@ -1651,7 +1651,7 @@ class DownloadController extends BaseController { $addtime = time(); $data = [ 'logid' => 'hz_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Query/summary', 'dataname' => '数据汇总数据', 'status' => 0, @@ -3278,7 +3278,7 @@ class DownloadController extends BaseController { $conditions = json_encode($map,TRUE); $data = [ 'logid' => 'remitrecord_'.time(), - 'admin_id' => PID, + 'promote_id' => PID, 'type' => '/Home/Finance/withdrawRecord', 'dataname' => '汇款证明', 'status' => 0,