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
6905e4c3
Commit
6905e4c3
authored
Jul 25, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
center
parent
e2ee48d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
MyCenter.php
application/api_broker/controller/MyCenter.php
+32
-0
MyCenterService.php
application/api_broker/service/MyCenterService.php
+2
-2
No files found.
application/api_broker/controller/MyCenter.php
View file @
6905e4c3
...
...
@@ -55,4 +55,36 @@ class MyCenter extends Basic
}
}
/**
* 我得个人中心
* @return \think\Response
*/
public
function
centerV2
()
{
$params
=
$this
->
params
;
/* $params = array(
"agent_id" => 1
);*/
if
(
empty
(
$params
[
'agent_id'
]))
{
if
(
empty
(
$this
->
agentId
))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$agent_id
=
$this
->
agentId
;
}
else
{
$agent_id
=
$params
[
"agent_id"
];
}
try
{
$result
=
$this
->
service_
->
centerV2
(
$agent_id
);
if
(
$result
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
}
catch
(
Exception
$exception
)
{
return
$this
->
response
(
"101"
,
"request error, msg:"
.
$exception
);
}
}
}
application/api_broker/service/MyCenterService.php
View file @
6905e4c3
...
...
@@ -122,12 +122,12 @@ class MyCenterService{
$auth_group
=
$redis
->
getRedisCache
(
3
,
$result
[
'auth_group_id'
]);
$result
[
'auth_group_name'
]
=
empty
(
$auth_group
[
'title'
])
?
''
:
$auth_group
[
'title'
];
$is_ok
=
$redis
->
checkRule
(
$re
dis
[
'id'
],
'index/dailyDetailsFinance'
);
$is_ok
=
$redis
->
checkRule
(
$re
sult
[
'id'
],
'index/dailyDetailsFinance'
);
if
(
!
$is_ok
)
{
$result
[
'show_daily'
]
=
1
;
//财务日报
}
$is_ok
=
$redis
->
checkRule
(
$re
dis
[
'id'
],
'broker/costList'
);
$is_ok
=
$redis
->
checkRule
(
$re
sult
[
'id'
],
'broker/costList'
);
if
(
!
$is_ok
)
{
$result
[
'show_cost_list'
]
=
1
;
//显示费用申请
}
...
...
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