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
43df6754
Commit
43df6754
authored
Oct 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除空
parent
60b20866
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
GHousesImgs.php
application/model/GHousesImgs.php
+10
-1
No files found.
application/model/GHousesImgs.php
View file @
43df6754
...
@@ -26,7 +26,7 @@ class GHousesImgs extends BaseModel
...
@@ -26,7 +26,7 @@ class GHousesImgs extends BaseModel
$count
=
0
;
$count
=
0
;
$insert_img
=
$result
=
[];
$insert_img
=
$result
=
[];
//1列表页封面图
//1列表页封面图
if
(
$params
[
'cover'
]
)
{
if
(
!
empty
(
$params
[
'cover'
])
&&
!
empty
(
$params
[
'cover'
][
'0'
])
)
{
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'img_type'
]
=
1
;
$insert_img
[
$count
][
'img_type'
]
=
1
;
$insert_img
[
$count
][
'img_name'
]
=
$params
[
'cover'
][
'0'
];
$insert_img
[
$count
][
'img_name'
]
=
$params
[
'cover'
][
'0'
];
...
@@ -36,6 +36,9 @@ class GHousesImgs extends BaseModel
...
@@ -36,6 +36,9 @@ class GHousesImgs extends BaseModel
//2详情页轮播图
//2详情页轮播图
if
(
$params
[
'slide_show'
])
{
if
(
$params
[
'slide_show'
])
{
foreach
(
$params
[
'slide_show'
]
as
$k
=>
$v
)
{
foreach
(
$params
[
'slide_show'
]
as
$k
=>
$v
)
{
if
(
empty
(
$v
))
{
continue
;
}
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'img_type'
]
=
2
;
$insert_img
[
$count
][
'img_type'
]
=
2
;
$insert_img
[
$count
][
'img_name'
]
=
$v
;
$insert_img
[
$count
][
'img_name'
]
=
$v
;
...
@@ -46,6 +49,9 @@ class GHousesImgs extends BaseModel
...
@@ -46,6 +49,9 @@ class GHousesImgs extends BaseModel
//3楼层平面图
//3楼层平面图
if
(
$params
[
'plan'
])
{
if
(
$params
[
'plan'
])
{
foreach
(
$params
[
'plan'
]
as
$kk
=>
$vv
)
{
foreach
(
$params
[
'plan'
]
as
$kk
=>
$vv
)
{
if
(
empty
(
$vv
))
{
continue
;
}
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'img_type'
]
=
3
;
$insert_img
[
$count
][
'img_type'
]
=
3
;
$insert_img
[
$count
][
'img_name'
]
=
$vv
;
$insert_img
[
$count
][
'img_name'
]
=
$vv
;
...
@@ -56,6 +62,9 @@ class GHousesImgs extends BaseModel
...
@@ -56,6 +62,9 @@ class GHousesImgs extends BaseModel
//4独家合同
//4独家合同
if
(
$params
[
'exclusive_img'
])
{
if
(
$params
[
'exclusive_img'
])
{
foreach
(
$params
[
'exclusive_img'
]
as
$kk
=>
$vv
)
{
foreach
(
$params
[
'exclusive_img'
]
as
$kk
=>
$vv
)
{
if
(
empty
(
$vv
))
{
continue
;
}
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'house_id'
]
=
$house_id
;
$insert_img
[
$count
][
'img_type'
]
=
4
;
$insert_img
[
$count
][
'img_type'
]
=
4
;
$insert_img
[
$count
][
'img_name'
]
=
$vv
;
$insert_img
[
$count
][
'img_name'
]
=
$vv
;
...
...
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