Commit cb639b19 authored by zhuwei's avatar zhuwei

黑名单删除图片

parent e0fc6520
......@@ -1032,6 +1032,21 @@ class Broker extends Basic
}
/**
* 删除文件
*/
public function delAgentsBlackListImg() {
if (empty($this->params['agents_black_list_img_id'])) {
return $this->response(101, '参数错误');
}
$m_agents_black_list_img = new AAgentsBlackListImg();
$params['status'] = 1;
$params['id'] = $this->params['agents_black_list_img_id'];
$m_agents_black_list_img->updateDatas($params);
return $this->response(200, '删除成功');
}
}
\ No newline at end of file
......@@ -54,7 +54,6 @@ class AAgentsBlackListImg extends Model
$result = $this->update($params);
//dump($this->getLastSql());
return $result;
}
......
......@@ -377,9 +377,10 @@ Route::group('index', [
'downloadFile' => [ 'index/news/downloadFile', [ 'method' => 'GET|POST' ] ], //新增商学院资讯
'addAgentsBlackList' => [ 'index/broker/addAgentsBlackList', [ 'method' => 'GET|POST' ] ],//添加黑名单
'getAgentsBlackList' => [ 'index/broker/getAgentsBlackList', [ 'method' => 'GET|POST' ] ],//黑名单列表
'getBlackListInfo' => [ 'index/broker/getBlackListInfo', [ 'method' => 'GET|POST' ] ],//黑名单详情
'addAgentsBlackList' => [ 'index/broker/addAgentsBlackList', [ 'method' => 'GET|POST' ] ],//添加黑名单
'getAgentsBlackList' => [ 'index/broker/getAgentsBlackList', [ 'method' => 'GET|POST' ] ],//黑名单列表
'getBlackListInfo' => [ 'index/broker/getBlackListInfo', [ 'method' => 'GET|POST' ] ],//黑名单详情
'delAgentsBlackListImg' => [ 'index/broker/delAgentsBlackListImg', [ 'method' => 'GET|POST' ] ],//黑名单删除图片
]);
......
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