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
2b5dbe24
Commit
2b5dbe24
authored
Jul 11, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺详情新增是否被收藏字段
parent
c4f4c356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
Shop.php
application/api_broker/controller/Shop.php
+16
-0
VipService.php
application/api_broker/service/VipService.php
+5
-0
No files found.
application/api_broker/controller/Shop.php
View file @
2b5dbe24
...
...
@@ -5,6 +5,7 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\LookShopService
;
use
app\api_broker\service\VerifyService
;
use
app\model\ACollectHouse
;
use
app\model\AttentionModel
;
use
app\model\GHouses
;
use
app\model\GHousesFollowUp
;
...
...
@@ -13,6 +14,7 @@ use app\model\OBargainModel;
use
app\model\Regions
;
use
think\Log
;
/**
* Created by PhpStorm.
* User : zw
...
...
@@ -338,6 +340,20 @@ class Shop extends Basic
}
}
//是否被收藏
$result
[
"is_collect"
]
=
2
;
if
(
$params
[
'site_area'
]
==
3
)
{
//先判断是否已经存在数据
$field
=
'id,status'
;
$get_params
[
'agents_id'
]
=
$params
[
"user_id"
];
$get_params
[
'house_id'
]
=
$params
[
"id"
];
$collect_house
=
new
ACollectHouse
();
$res
=
$collect_house
->
getCollectHouse
(
$field
,
$get_params
);
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
)){
//如果存在
$result
[
"is_collect"
]
=
1
;
}
}
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
...
...
application/api_broker/service/VipService.php
View file @
2b5dbe24
...
...
@@ -47,4 +47,8 @@ class VipService
}
}
}
\ 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