|
|
|
@ -172,6 +172,8 @@ class MemberController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
$showMarketAdmin = session('user_auth')['show_market_admin'];
|
|
|
|
|
$showPromote = session('user_auth')['show_promote'];
|
|
|
|
|
$departmentList = A("Market",'Event')->getDepartmentNameByMarketType();
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['export'])){
|
|
|
|
|
$isadmin = is_administrator();
|
|
|
|
|
//获取等级
|
|
|
|
@ -215,11 +217,18 @@ class MemberController extends ThinkController
|
|
|
|
|
$v['check_status'] = $v['check_status']==1 ? "正常" :"拉黑";
|
|
|
|
|
$v['is_repeat'] = $v['is_repeat']==1 ? "是" :"否";
|
|
|
|
|
$v['device_type'] = $v['device_type'] == 1 ? "安卓" :($v['device_type'] == 2 ? "IOS" :"未知");
|
|
|
|
|
$v['market_admin_username'] = isset($adminList[$v['promote_id']]) && $adminList[$v['promote_id']]['admin'] ? $adminList[$v['promote_id']]['admin']['username'] : '无';
|
|
|
|
|
|
|
|
|
|
if(isset($adminList[$v['promote_id']]) && $adminList[$v['promote_id']]['admin']){
|
|
|
|
|
$v['market_admin_username'] = $adminList[$v['promote_id']]['admin']['username'];
|
|
|
|
|
$v['market_admin_department'] = $departmentList[$adminList[$v['promote_id']]['admin']['id']] ?? "无";
|
|
|
|
|
}else{
|
|
|
|
|
$v['market_admin_username'] = '无';
|
|
|
|
|
$v['market_admin_department'] = '无';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$field = array(
|
|
|
|
|
"id"=>"账号ID","account"=>"玩家账号","promote_account"=>"所属推广员","market_admin_username"=>"所属市场专员","balance"=>"账户平台币","recharge_total"=>"累计充值","gold_coin"=>"金币",
|
|
|
|
|
"id"=>"账号ID","account"=>"玩家账号","promote_account"=>"所属推广员","market_admin_username"=>"所属市场专员","market_admin_department"=>"所属市场部","balance"=>"账户平台币","recharge_total"=>"累计充值","gold_coin"=>"金币",
|
|
|
|
|
"small_count"=>"小号","vip_level"=>"VIP等级","register_type"=>"注册方式","register_time"=>"注册时间","register_ip"=>"注册IP","login_time"=>"最后登录时间",
|
|
|
|
|
"device_number"=>"设备号","device_type"=>"设备类型","is_repeat"=>"去重数据","lock_remark"=>"锁定备注","lock_status"=>"账号状态","check_status"=>"拉黑状态"
|
|
|
|
|
);
|
|
|
|
@ -239,9 +248,19 @@ class MemberController extends ThinkController
|
|
|
|
|
));
|
|
|
|
|
data2csv($data,"玩家_玩家列表",$field);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$adminList = getMarketAdminsByPromoteIds(array_column($data, 'promote_id'));
|
|
|
|
|
foreach ($data as $key=>&$value ) {
|
|
|
|
|
($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
|
if(isset($adminList[$value['promote_id']]) && $adminList[$value['promote_id']]['admin']){
|
|
|
|
|
$value['market_admin_username'] = $adminList[$value['promote_id']]['admin']['username'];
|
|
|
|
|
$value['market_admin_department'] = $departmentList[$adminList[$value['promote_id']]['admin']['id']] ?? "无";
|
|
|
|
|
}else{
|
|
|
|
|
$value['market_admin_username'] = '无';
|
|
|
|
|
$value['market_admin_department'] = '无';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$value['market_admin_username'] = isset($adminList[$value['promote_id']]) && $adminList[$value['promote_id']]['admin'] ? $adminList[$value['promote_id']]['admin']['username'] : '无';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|