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
e108e1aa
Commit
e108e1aa
authored
Jul 31, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺图片
parent
f346915f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
GHouses.php
application/model/GHouses.php
+8
-12
No files found.
application/model/GHouses.php
View file @
e108e1aa
...
...
@@ -1311,19 +1311,15 @@ class GHouses extends BaseModel
$agents
->
addAgents
(
$params
[
'exclusive_ids'
],
$house_id
,
3
);
}
if
(
$params
[
'image_file'
])
{
$m_img
=
new
GHousesImgs
();
$image_file
=
json_decode
(
$params
[
'image_file'
],
true
);
$img_data
=
[];
foreach
(
$image_file
as
$k
=>
$v
)
{
$img_data
[
$k
][
'house_id'
]
=
$result
[
'house_id'
];
$img_data
[
$k
][
'img_name'
]
=
$v
[
'img_name'
];
$img_data
[
$k
][
'img_type'
]
=
$v
[
'img_type'
];
}
$m_img
->
addHouseImgAll
(
$img_data
);
//1列表页封面图,2详情页轮播图,3楼层平面图,4独家合同
/***保存图片 hu jun 2018.1.19 start***/
$house_img
=
new
GHousesImgs
();
if
(
$params
[
'id'
]
==
''
)
{
$house_img
->
add
(
$params
,
$house_id
);
}
else
{
$house_img
->
edit
(
$params
,
$house_id
);
}
/***保存图片 hujun 2018.1.19 end***/
if
(
$result
[
'house_id'
]
!=
NULL
)
{
$this
->
commit
();
...
...
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