Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
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
杨昕
media-resource
Commits
d64431fc
Commit
d64431fc
authored
May 20, 2021
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code format
parent
d744d114
Pipeline
#14724
passed with stages
in 3 minutes 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
functions.php
app/Helpers/functions.php
+1
-1
UserModel.php
app/Model/UserModel.php
+1
-1
No files found.
app/Helpers/functions.php
View file @
d64431fc
...
@@ -363,7 +363,7 @@ function getRbac($request,$url='api/ram',$appid = '' ,$type='base'){
...
@@ -363,7 +363,7 @@ function getRbac($request,$url='api/ram',$appid = '' ,$type='base'){
$sign
=
md5
(
'ak='
.
$rbac_ak
.
'&t='
.
$time
.
'&sk='
.
$rbac_sk
);
$sign
=
md5
(
'ak='
.
$rbac_ak
.
'&t='
.
$time
.
'&sk='
.
$rbac_sk
);
switch
(
$type
){
switch
(
$type
){
#获取用户业务权限
case
'base'
:
case
'base'
:
$mis_uid
=
$request
->
mis_uid
;
$mis_uid
=
$request
->
mis_uid
;
$rbac_url
=
$rbac
.
'/rbac/'
.
$url
.
'?t='
.
$time
.
'&sign='
.
$sign
.
'&ak='
.
$rbac_ak
.
'&appid='
.
$appid
.
'&uid='
.
$mis_uid
;
$rbac_url
=
$rbac
.
'/rbac/'
.
$url
.
'?t='
.
$time
.
'&sign='
.
$sign
.
'&ak='
.
$rbac_ak
.
'&appid='
.
$appid
.
'&uid='
.
$mis_uid
;
...
...
app/Model/UserModel.php
View file @
d64431fc
...
@@ -399,7 +399,7 @@ class UserModel extends Authenticatable
...
@@ -399,7 +399,7 @@ class UserModel extends Authenticatable
$data['type'] = 6;
$data['type'] = 6;
$data['username'] = $staffNo;*/
$data['username'] = $staffNo;*/
//第三方接口要求mis_uid是必填字段,第一次获取的时候默认传值000000
//第三方接口要求mis_uid是必填字段,第一次获取的时候默认传值000000
$request
->
replace
(
array_merge
(
$request
->
all
(),[
'mis_uid'
=>
'000000'
]));
//
$request->replace(array_merge($request->all(),['mis_uid'=>'000000']));
$url
=
getRbac
(
$request
,
"api/mis/userinfo"
,
''
,
'mis_user'
);
$url
=
getRbac
(
$request
,
"api/mis/userinfo"
,
''
,
'mis_user'
);
...
...
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