|
|
|
@ -65,6 +65,7 @@ class MendController extends ThinkController {
|
|
|
|
|
} elseif (isset($_REQUEST['time_end'])) {
|
|
|
|
|
$map['order_time'] = ['LT', strtotime($_REQUEST['time_end']) + 86399];
|
|
|
|
|
}
|
|
|
|
|
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$data = M("Mend","tab_")
|
|
|
|
@ -81,6 +82,9 @@ class MendController extends ThinkController {
|
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
|
$data[$key]['create_time'] = date("Y-m-d H:i:s",$value['create_time']);
|
|
|
|
|
$data[$key]['order_time'] = date("Y-m-d H:i:s",$value['order_time']);
|
|
|
|
|
if(!$show_data_power){
|
|
|
|
|
$data[$key]['user_account'] = encryptStr($data[$key]['user_account']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($export) db2csv($data,"推广员管理_推广补链_补链记录",["玩家账号","补链前渠道","补链前归属金额","补链后渠道","切分时间","补链时间","操作人员","备注"]);
|
|
|
|
@ -102,7 +106,7 @@ class MendController extends ThinkController {
|
|
|
|
|
|
|
|
|
|
$page = set_pagination($count,$row);
|
|
|
|
|
if($page) {$this->assign('_page', $page);}
|
|
|
|
|
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
|
|
|
|
|
|
|
|
|
|
$this->assign('show_data_power', $show_data_power);
|
|
|
|
|
$this->display();
|
|
|
|
|
// parent::lists("Mend",$p,$map);
|
|
|
|
|