@ -2819,7 +2819,8 @@ function getAvailableBalance($promote_id=0,$game_id=0,$server_id='') {
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()
@ -28,7 +28,7 @@ class MarketEvent extends Controller
return rtrim($sendData,",");
/**
* 获取所有市场部组id
* 获取市场专员gid(除了总监)
*/
public function getNoLeaderMarketGroupId()