优化权限

master
chenzhi 3 years ago
parent 29e03a1718
commit e97d763bc8

@ -2819,7 +2819,8 @@ function getAvailableBalance($promote_id=0,$game_id=0,$server_id='') {
function getMarketGroupIds() function getMarketGroupIds()
{ {
return M('auth_group', 'sys_')->where(['title' => ['like', '%市场专员%']])->getField('id', true); $map['id'] = ['in',A('Market','Event')->getNoLeaderMarketGroupId()];
return M('auth_group', 'sys_')->where($map)->getField('id', true);
} }
function getAdmins() function getAdmins()

@ -28,7 +28,7 @@ class MarketEvent extends Controller
return rtrim($sendData,","); return rtrim($sendData,",");
} }
/** /**
* 获取所有市场部组id * 获取市场专员gid(除了总监)
*/ */
public function getNoLeaderMarketGroupId() public function getNoLeaderMarketGroupId()
{ {

Loading…
Cancel
Save