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
553b941c
Commit
553b941c
authored
Aug 14, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
da9cb4e5
Pipeline
#10678
passed with stages
in 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
functions.php
app/Helpers/functions.php
+2
-3
No files found.
app/Helpers/functions.php
View file @
553b941c
...
...
@@ -310,8 +310,7 @@ function generateRandomNum( $len = 32, $md5 = true ) {
* @return string
*/
function
getRbac
(){
$user
=
Auth
::
user
();
//https://api.eoffcn.com/demo/get?t=xx&sign=xx&ak=xx
//其中sign=md5(ak=$ak&t=时间戳&sk=$sk)
...
...
@@ -324,7 +323,7 @@ function getRbac(){
$time
=
time
();
$sign
=
md5
(
'ak='
.
$rbac_ak
.
'&t='
.
$time
.
'&sk='
.
$rbac_sk
);
$rbac_url
=
$rbac
.
'/rbac/api/ram?t='
.
$time
.
'&sign='
.
$sign
.
'&ak='
.
$rbac_ak
.
'&appid=ec8747abc5dbe8288e64f327a76ac517&uid=
admin
'
;
$rbac_url
=
$rbac
.
'/rbac/api/ram?t='
.
$time
.
'&sign='
.
$sign
.
'&ak='
.
$rbac_ak
.
'&appid=ec8747abc5dbe8288e64f327a76ac517&uid=
60108
'
;
...
...
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