Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
cb639b19
Commit
cb639b19
authored
Dec 12, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑名单删除图片
parent
e0fc6520
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
Broker.php
application/index/controller/Broker.php
+16
-0
AAgentsBlackListImg.php
application/model/AAgentsBlackListImg.php
+0
-1
route.php
application/route.php
+4
-3
No files found.
application/index/controller/Broker.php
View file @
cb639b19
...
...
@@ -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
application/model/AAgentsBlackListImg.php
View file @
cb639b19
...
...
@@ -54,7 +54,6 @@ class AAgentsBlackListImg extends Model
$result
=
$this
->
update
(
$params
);
//dump($this->getLastSql());
return
$result
;
}
...
...
application/route.php
View file @
cb639b19
...
...
@@ -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'
]
],
//黑名单删除图片
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment