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
11a37313
Commit
11a37313
authored
Sep 05, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3a313e8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
MyCenterService.php
application/api_broker/service/MyCenterService.php
+19
-0
AmercementService.php
application/index/service/AmercementService.php
+1
-1
No files found.
application/api_broker/service/MyCenterService.php
View file @
11a37313
...
...
@@ -140,9 +140,28 @@ class MyCenterService{
$bank_data
=
$this
->
getBank
(
$result
[
'id'
]);
$result
=
array_merge
(
$result
,
$bank_data
);
//是否有权限新增罚款 0:有权限 1:无权限
$result
[
'is_can_add_amercement'
]
=
$this
->
isCanAddAmercement
(
$agent_id
);
return
$result
;
}
/**
* 权限查看
* @param $agent_id
* @return int
*/
public
function
isCanAddAmercement
(
$agent_id
){
$is_can_add_amercement
=
1
;
$vip
=
new
VipService
();
//0:有权限 1:无权限
$res
=
$vip
->
checkRule
(
$agent_id
,
'addAmercement'
);
if
(
$res
==
0
){
$is_can_add_amercement
=
0
;
}
return
$is_can_add_amercement
;
}
public
function
getBank
(
$agent_id
)
{
$m_bank
=
new
AAgentsBank
();
...
...
application/index/service/AmercementService.php
View file @
11a37313
...
...
@@ -342,7 +342,7 @@ class AmercementService
if
((
isset
(
$params
[
'money'
]))
&&
(
$params
[
'money'
]
>
0
))
$data
[
'money'
]
=
$params
[
'money'
];
if
((
isset
(
$params
[
'type'
]))
&&
(
in_array
(
$params
[
'type'
],
[
0
,
1
])))
if
((
isset
(
$params
[
'type'
]))
&&
(
in_array
(
$params
[
'type'
],
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
])))
$data
[
'type'
]
=
$params
[
'type'
];
if
((
isset
(
$params
[
'remarks'
]))
&&
$params
[
'remarks'
])
...
...
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