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
a829911d
Commit
a829911d
authored
Mar 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除图片修改
parent
9972c815
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Shop.php
application/api_broker/controller/Shop.php
+4
-3
No files found.
application/api_broker/controller/Shop.php
View file @
a829911d
...
@@ -338,13 +338,14 @@ class Shop extends Basic
...
@@ -338,13 +338,14 @@ class Shop extends Basic
$data
[
'data'
]
=
''
;
$data
[
'data'
]
=
''
;
if
(
empty
(
$this
->
params
[
'save_path'
])
||
empty
(
$this
->
params
[
'house_id'
])){
if
(
empty
(
$this
->
params
[
'save_path'
])
||
empty
(
$this
->
params
[
'house_id'
])){
return
$this
->
response
(
$data
[
'status'
],
'Save_path or id house_id null'
,
$data
[
'data'
]);
return
$this
->
response
(
$data
[
'status'
],
'Save_path or id house_id
is
null'
,
$data
[
'data'
]);
}
}
$img
=
new
GHousesImgs
();
$img
=
new
GHousesImgs
();
$id
=
$img
->
getHouseImagesInfo
(
'id'
,[
$id
=
$img
->
getHouseImagesInfo
(
'id'
,[
'house_id'
=>
$this
->
params
[
'house_id'
],
'house_id'
=>
$this
->
params
[
'house_id'
],
'img_name'
=>
$this
->
params
[
'save_path'
]
'img_name'
=>
$this
->
params
[
'save_path'
],
'img_status'
=>
0
]);
]);
if
(
empty
(
$id
[
'id'
]))
{
if
(
empty
(
$id
[
'id'
]))
{
...
@@ -352,7 +353,7 @@ class Shop extends Basic
...
@@ -352,7 +353,7 @@ class Shop extends Basic
}
else
{
}
else
{
$path
=
ROOT_PATH
.
'public'
.
DS
.
'resource'
.
DS
.
'lib'
.
DS
.
'Attachments'
.
DS
.
'Images/'
;
$path
=
ROOT_PATH
.
'public'
.
DS
.
'resource'
.
DS
.
'lib'
.
DS
.
'Attachments'
.
DS
.
'Images/'
;
@
unlink
(
$path
.
$this
->
params
[
'save_path'
]);
@
unlink
(
$path
.
$this
->
params
[
'save_path'
]);
$img
->
editData
([
'img_status'
=>
1
],
$
this
->
params
[
'house_
id'
],
'id'
);
$img
->
editData
([
'img_status'
=>
1
],
$
id
[
'
id'
],
'id'
);
$data
[
'status'
]
=
200
;
$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