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
68107c57
Commit
68107c57
authored
Apr 09, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quanxian
parent
a2374add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Houses.php
application/index/controller/Houses.php
+1
-0
GHouses.php
application/model/GHouses.php
+9
-1
No files found.
application/index/controller/Houses.php
View file @
68107c57
...
...
@@ -79,6 +79,7 @@ class Houses extends Basic
//获取商铺详情
try
{
$list
=
$house
->
getHouseById
(
$this
->
params
[
'id'
],
0
);
if
(
$list
[
'status'
]
==
'successful'
)
{
$result
[
'data'
]
=
$list
[
'data'
];
}
else
{
...
...
application/model/GHouses.php
View file @
68107c57
...
...
@@ -3,6 +3,7 @@
namespace
app\model
;
use
app\api_broker\service\VipService
;
use
app\index\service\ImageDepotService
;
use
think\Db
;
...
...
@@ -778,7 +779,14 @@ class GHouses extends BaseModel
}
try
{
$house_data
=
$this
->
field
(
'id,external_image_id'
)
->
where
(
'id'
,
$data
[
'id'
])
->
find
();
$house_data
=
$this
->
field
(
'id,external_image_id,is_vip'
)
->
where
(
'id'
,
$data
[
'id'
])
->
find
();
//vip盘判断权限
if
(
$house_data
[
'is_vip'
]
==
1
){
$vip
=
new
VipService
();
//0:有权限 1:无权限
if
(
$vip
->
vip
(
$data
[
'user_id'
],
'index/editHouse'
)
==
1
){
return
(
int
)
$house_id
=
0
;
}
}
//C端随机图片
if
(
!
empty
(
$save_data
[
'industry_type'
])
&&
empty
(
$house_data
[
'external_image_id'
]))
{
...
...
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