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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ShopService.php
application/api/service/ShopService.php
+6
-3
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"
]))
{
...
...
@@ -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
);
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