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
5069831d
Commit
5069831d
authored
Jun 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除图片返回信息
parent
15508548
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Houses.php
application/index/controller/Houses.php
+3
-5
No files found.
application/index/controller/Houses.php
View file @
5069831d
...
...
@@ -367,21 +367,19 @@ class Houses extends Basic
$data
[
'msg'
]
=
''
;
$data
[
'data'
]
=
''
;
if
(
empty
(
$this
->
params
[
'
save_path'
])
||
empty
(
$this
->
params
[
'house_
id'
]))
{
return
$this
->
response
(
$data
[
'status'
],
'
Save_path or id house_id is null
'
,
$data
[
'data'
]);
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
$data
[
'status'
],
'
参数错误
'
,
$data
[
'data'
]);
}
$img
=
new
GHousesImgs
();
$id
=
$img
->
getHouseImagesInfo
(
'id'
,
[
'house_id'
=>
$this
->
params
[
'house_id'
],
'img_name'
=>
$this
->
params
[
'save_path'
],
'id'
=>
$this
->
params
[
'house_id'
],
'img_status'
=>
0
]);
if
(
empty
(
$id
[
'id'
]))
{
$data
[
'msg'
]
=
'没有该文件'
;
}
else
{
$path
=
ROOT_PATH
.
'public'
.
DS
.
'resource'
.
DS
.
'lib'
.
DS
.
'Attachments'
.
DS
.
'Images/'
;
$img
->
editData
([
'img_status'
=>
1
],
$id
[
'id'
],
'id'
);
$data
[
'status'
]
=
200
;
}
...
...
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