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
ffb53817
Commit
ffb53817
authored
Aug 27, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6737730a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ShopService.php
application/api/service/ShopService.php
+9
-6
No files found.
application/api/service/ShopService.php
View file @
ffb53817
...
...
@@ -56,11 +56,11 @@ class ShopService
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getShopDetail
(
$field
,
$conditions
,
$site_area
,
$user_id
,
$type
)
public
function
getShopDetail
(
$field
,
$conditions
,
$site_area
,
$user_id
,
$type
)
{
$result
=
$this
->
gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
if
(
!
$result
||
$result
[
'status'
]
==
0
)
{
if
(
!
$result
||
$result
[
'status'
]
==
0
)
{
return
null
;
}
if
(
$result
[
"start_business_date"
]
==
"0000-00-00 00:00:00"
||
empty
(
$result
[
"start_business_date"
]))
{
...
...
@@ -90,8 +90,8 @@ class ShopService
$result
[
"images"
]
=
count
(
$res
)
>
0
?
$res
:
[];
}
}
else
{
$result
[
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$param
[
"house_id"
]
=
$result
[
'id'
];
$result
[
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$param
[
"house_id"
]
=
$result
[
'id'
];
$param
[
"img_type"
]
=
2
;
$result
[
"images"
]
=
$this
->
gHousesImgModel
->
getHouseImages
(
$param
,
15
);
$param
[
"img_type"
]
=
3
;
//图片类型:1效果图,2实景图,3样板图,4户型图,5交通图
...
...
@@ -130,7 +130,9 @@ class ShopService
$result
[
'shop_videos'
]
=
$s_house
->
getHouseVideoList
(
$result
[
"id"
]);
$result
[
'shop_videos_length'
]
=
$s_house
->
getHouseVideoLength
();
$this
->
lookShopService_
->
addUserLookShop
((
int
)
$user_id
,(
int
)
$result
[
"id"
],
$type
);
return
$result
;
if
(
$user_id
>
0
)
{
$this
->
lookShopService_
->
addUserLookShop
((
int
)
$user_id
,
(
int
)
$result
[
"id"
],
$type
);
}
return
$result
;
}
}
\ No newline at end of file
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