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
dec06539
Commit
dec06539
authored
Apr 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理盘方编辑自己的商铺,没有vip权限
parent
0dd279c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
HouseService.php
application/index/service/HouseService.php
+8
-3
No files found.
application/index/service/HouseService.php
View file @
dec06539
...
@@ -128,9 +128,14 @@ class HouseService
...
@@ -128,9 +128,14 @@ class HouseService
$vip_house
=
$vip
->
vip
(
$agent_id
,
'index/vipHouse'
);
$vip_house
=
$vip
->
vip
(
$agent_id
,
'index/vipHouse'
);
if
(
$vip_house
==
1
){
if
(
$vip_house
==
1
){
$result
[
'status'
]
=
'fail'
;
$m_house_agent
=
new
GHousesToAgents
();
$result
[
'msg'
]
=
'无vip盘编辑权限!'
;
$agents_id_arr
=
$m_house_agent
->
getAgentHouseOne
(
'agents_id'
,[
'houses_id'
=>
$data
[
'id'
],
'is_del'
=>
0
,
'type'
=>
2
]);
return
$result
;
//处理盘方编辑自己的商铺,没有vip权限
if
(
!
empty
(
$agents_id_arr
)
&&
!
in_array
(
$agent_id
,
$agents_id_arr
))
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'无vip盘编辑权限!'
;
return
$result
;
}
}
}
}
}
$m_operating
=
new
GOperatingRecords
();
$m_operating
=
new
GOperatingRecords
();
...
...
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