|
|
|
@ -79,16 +79,7 @@ class MemberController extends ThinkController
|
|
|
|
|
$is_repeat = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$marketAdminId = I('market_admin_id', 0);
|
|
|
|
|
if ($marketAdminId) {
|
|
|
|
|
$map['promote.admin_id'] = $marketAdminId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$isMarketAdmin = isMarketAdmin();
|
|
|
|
|
if ($isMarketAdmin) {
|
|
|
|
|
$userAuth = session('user_auth');
|
|
|
|
|
$map['promote.admin_id'] = $userAuth['uid'];
|
|
|
|
|
}
|
|
|
|
|
$map = withMarketAdminCondition($map, I('market_admin_id', 0));
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['status'])) {
|
|
|
|
|
$map['lock_status'] = $_REQUEST['status'];
|
|
|
|
@ -141,7 +132,7 @@ class MemberController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断是否有列表和统计的权限
|
|
|
|
|
$this->checkListOrCountAuthRestMap($map,["tab_user.id","tab_user.account","tab_user.device_number"]);
|
|
|
|
|
// $this->checkListOrCountAuthRestMap($map,["tab_user.id","tab_user.account","tab_user.device_number"]);
|
|
|
|
|
//计算用户列表
|
|
|
|
|
$data = M("user","tab_")
|
|
|
|
|
->field("tab_user.id,`device_number`,`age_status`,tab_user.account,`balance`,`gold_coin`,`alipay`,tab_user.promote_id,`register_type`,tab_user.promote_account,`register_time`,`lock_status`,lock_remark,
|
|
|
|
|