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
96cc912f
Commit
96cc912f
authored
Dec 18, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片
parent
dba28bb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
HouseService.php
application/index/service/HouseService.php
+1
-1
GHousesImgs.php
application/model/GHousesImgs.php
+7
-4
No files found.
application/index/service/HouseService.php
View file @
96cc912f
...
...
@@ -157,7 +157,7 @@ class HouseService
}
}
if
(
$data
[
'id'
]
==
''
)
{
if
(
empty
(
$data
[
'id'
])
)
{
$house_img
->
add
(
$data
,
$house_id
);
//只记录新增图片
}
else
{
$image_result
=
$house_img
->
edit
(
$data
,
$house_id
);
//编辑图片
...
...
application/model/GHousesImgs.php
View file @
96cc912f
...
...
@@ -34,7 +34,7 @@ class GHousesImgs extends BaseModel
}
//2详情页轮播图
if
(
$params
[
'slide_show'
]
)
{
if
(
!
empty
(
$params
[
'slide_show'
])
)
{
foreach
(
$params
[
'slide_show'
]
as
$k
=>
$v
)
{
if
(
empty
(
$v
))
{
continue
;
...
...
@@ -47,7 +47,7 @@ class GHousesImgs extends BaseModel
}
//3楼层平面图
if
(
$params
[
'plan'
]
)
{
if
(
!
empty
(
$params
[
'plan'
])
)
{
foreach
(
$params
[
'plan'
]
as
$kk
=>
$vv
)
{
if
(
empty
(
$vv
))
{
continue
;
...
...
@@ -60,7 +60,7 @@ class GHousesImgs extends BaseModel
}
//4独家合同
if
(
$params
[
'exclusive_img'
]
)
{
if
(
!
empty
(
$params
[
'exclusive_img'
])
)
{
foreach
(
$params
[
'exclusive_img'
]
as
$kk
=>
$vv
)
{
if
(
empty
(
$vv
))
{
continue
;
...
...
@@ -73,7 +73,10 @@ class GHousesImgs extends BaseModel
}
try
{
$result
[
'data'
]
=
$this
->
saveAll
(
$insert_img
);
if
(
!
empty
(
$insert_img
))
{
$result
[
'data'
]
=
$this
->
saveAll
(
$insert_img
);
}
$result
[
'status'
]
=
'successful'
;
}
catch
(
\Exception
$e
)
{
$result
[
'status'
]
=
'fail'
;
...
...
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