Commit 5f6a35fc authored by zhuwei's avatar zhuwei

黑名单权限

parent ce5c8780
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
namespace app\index\controller; namespace app\index\controller;
use app\api_broker\service\VipService;
use app\index\service\BrokerService; use app\index\service\BrokerService;
use app\api_broker\service\CallPhoneService; use app\api_broker\service\CallPhoneService;
use app\api_broker\service\PushMessageService; use app\api_broker\service\PushMessageService;
...@@ -906,6 +907,13 @@ class Broker extends Basic ...@@ -906,6 +907,13 @@ class Broker extends Basic
if (!isset($params["agents_id"]) && !isset($params["agents_black_list_id"])) { if (!isset($params["agents_id"]) && !isset($params["agents_black_list_id"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
$vip_services = new VipService();
//0:可查看 1:不可查看
dump($this->userId);
$is_can_edit = $vip_services->vip($this->userId,'addAgentsBlackList');
if ($is_can_edit == 1) {
return $this->response("101", "无拉黑权限");
}
$service_broker = new BrokerService(); $service_broker = new BrokerService();
$m_agents_black_list = new AAgentsBlackList(); $m_agents_black_list = new AAgentsBlackList();
if($params["agents_black_list_id"]){//更新 if($params["agents_black_list_id"]){//更新
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment