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
8a84b34d
Commit
8a84b34d
authored
Jul 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check_rule
parent
00d75c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+27
-5
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
8a84b34d
...
...
@@ -40,7 +40,7 @@ class ApplyForCost extends Basic
$check_rule
=
new
VipService
();
switch
(
$this
->
params
[
'type'
])
{
case
1
:
$check_url
=
'index/checkCostTwo'
;
$check_url
=
'index/checkCostTwo
/1
'
;
$where
[
'a.status'
]
=
0
;
$m_agent
=
new
AAgents
();
...
...
@@ -53,7 +53,7 @@ class ApplyForCost extends Basic
}
break
;
case
2
:
$check_url
=
'index/checkCostThree'
;
$check_url
=
'index/checkCostThree
/2
'
;
//总监权限查看
$where
[
'a.status'
]
=
1
;
...
...
@@ -67,10 +67,10 @@ class ApplyForCost extends Basic
}
break
;
case
3
:
$check_url
=
'index/checkCostFour'
;
$check_url
=
'index/checkCostFour
/3
'
;
$where
[
'a.status'
]
=
2
;
break
;
//财务一审
case
4
:
$check_url
=
'index/checkCostFive'
;
$check_url
=
'index/checkCostFive
/4
'
;
$where
[
'a.status'
]
=
3
;
break
;
//财务二审
case
5
:
$where
[
'a.status'
]
=
4
;
break
;
//财务三审
...
...
@@ -148,8 +148,30 @@ class ApplyForCost extends Basic
return
$this
->
response
(
101
,
'参数错误'
);
}
$check_rule
=
new
VipService
();
switch
(
$this
->
params
[
'status'
])
{
case
1
:
$check_url
=
'index/checkCostTwo/1'
;
break
;
case
2
:
$check_url
=
'index/checkCostThree/2'
;
break
;
case
3
:
$check_url
=
'index/checkCostFour/3'
;
break
;
case
4
:
$check_url
=
'index/checkCostFive/4'
;
break
;
default
:
return
$this
->
response
(
101
,
'请求错误'
);
}
$is_ok
=
$check_rule
->
checkRule
(
$this
->
agentId
,
$check_url
);
if
(
$is_ok
)
{
return
$this
->
response
(
101
,
'没有审核权限'
);
}
$service
=
new
CostService
();
$this
->
params
[
'status'
]
=
1
;
//总监审核
$result
=
$service
->
check
(
$this
->
params
,
$this
->
agentId
);
$code
=
200
;
if
(
$result
[
'status'
]
==
'fail'
)
{
...
...
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