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
bd5220f8
Commit
bd5220f8
authored
Apr 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c5a811b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
HouseService.php
application/index/service/HouseService.php
+15
-1
GHouses.php
application/model/GHouses.php
+0
-7
No files found.
application/index/service/HouseService.php
View file @
bd5220f8
...
@@ -81,6 +81,8 @@ class HouseService
...
@@ -81,6 +81,8 @@ class HouseService
return
$result
;
return
$result
;
}
}
try
{
try
{
if
(
$check_address
)
{
if
(
$check_address
)
{
$check_where
[
'internal_address'
]
=
trim
(
$data
[
'internal_address'
]);
$check_where
[
'internal_address'
]
=
trim
(
$data
[
'internal_address'
]);
...
@@ -105,13 +107,25 @@ class HouseService
...
@@ -105,13 +107,25 @@ class HouseService
}
}
if
(
!
empty
(
$data
[
'id'
]))
{
if
(
!
empty
(
$data
[
'id'
]))
{
$house_data
=
$this
->
m_house
->
getHouseInfo
(
'id,internal_address,internal_title,shop_area_start'
,
[
'id'
=>
$data
[
'id'
]]);
$house_data
=
$this
->
m_house
->
getHouseInfo
(
'id,internal_address,internal_title,shop_area_start
,is_vip
'
,
[
'id'
=>
$data
[
'id'
]]);
if
(
empty
(
$house_data
[
0
][
'id'
]))
{
if
(
empty
(
$house_data
[
0
][
'id'
]))
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'没有该商铺信息'
;
$result
[
'msg'
]
=
'没有该商铺信息'
;
return
$result
;
return
$result
;
}
}
//vip盘判断权限
if
(
$house_data
[
0
][
'is_vip'
]
==
1
){
$vip
=
new
VipService
();
//0:有权限 1:无权限
$look_house
=
$vip
->
vip
(
$agent_id
,
'lookVipHouse'
);
$vip_house
=
$vip
->
vip
(
$agent_id
,
'index/vipHouse'
);
if
((
$look_house
==
1
)
and
(
$vip_house
==
1
)){
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'无vip盘编辑权限!'
;
return
$result
;
}
}
$m_operating
=
new
GOperatingRecords
();
$m_operating
=
new
GOperatingRecords
();
$remark
=
''
;
$remark
=
''
;
...
...
application/model/GHouses.php
View file @
bd5220f8
...
@@ -780,13 +780,6 @@ class GHouses extends BaseModel
...
@@ -780,13 +780,6 @@ class GHouses extends BaseModel
try
{
try
{
$house_data
=
$this
->
field
(
'id,external_image_id,is_vip'
)
->
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'
],
'lookVipHouse'
)
==
1
)
and
(
$vip
->
vip
(
$data
[
'user_id'
],
'index/vipHouse'
)
==
1
)){
return
(
int
)
$house_id
=
0
;
}
}
//C端随机图片
//C端随机图片
if
(
!
empty
(
$save_data
[
'industry_type'
])
&&
empty
(
$house_data
[
'external_image_id'
]))
{
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