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
b25b96ff
Commit
b25b96ff
authored
May 30, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
c95ebdc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
OfficeService.php
application/index/service/OfficeService.php
+6
-6
No files found.
application/index/service/OfficeService.php
View file @
b25b96ff
...
...
@@ -91,8 +91,8 @@ class OfficeService
}
//楼盘图片
if
(
!
empty
(
$data
[
'
slide_show
'
]))
{
$this
->
m_office_img
->
edit
(
$data
[
'
slide_show'
],
$id
,
2
);
if
(
!
empty
(
$data
[
'
building_images
'
]))
{
$this
->
m_office_img
->
edit
(
$data
[
'
building_images'
],
$id
,
0
);
}
$result
[
'status'
]
=
'successful'
;
...
...
@@ -128,11 +128,11 @@ class OfficeService
if
(
$result
)
{
$img_data
=
$this
->
m_office_img
->
getListAll
(
'id,img_type,img_name'
,
[
'building_id'
=>
$id
,
'img_type'
=>
2
]);
$img_data
=
$this
->
m_office_img
->
getListAll
(
'id,img_type,img_name'
,
[
'building_id'
=>
$id
,
'img_type'
=>
0
]);
if
(
$app
==
0
)
{
foreach
(
$img_data
as
$k
=>
$v
)
{
$data
[
'
slide_show
'
][
$k
][
'img_name'
]
=
$v
[
'img_name'
];
$data
[
'
slide_show
'
][
$k
][
'id'
]
=
$v
[
'id'
];
$data
[
'
building_images
'
][
$k
][
'img_name'
]
=
$v
[
'img_name'
];
$data
[
'
building_images
'
][
$k
][
'id'
]
=
$v
[
'id'
];
}
}
else
{
$file_url
=
[];
...
...
@@ -140,7 +140,7 @@ class OfficeService
$img_url
=
CK_IMG_URL
.
'images/'
.
$v
->
img_name
;
$file_url
[
'file_name'
]
=
$img_url
;
$file_url
[
'save_path'
]
=
$v
[
'img_name'
];
$data
[
'
slide_show
'
][]
=
$file_url
;
$data
[
'
building_images
'
][]
=
$file_url
;
}
}
...
...
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