Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d089553c
authored
Feb 19, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
v1.0
parent
2b976bbb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
app/Http/Controllers/HandleController.php
app/Http/function.php
app/Http/routes.php
app/Http/Controllers/HandleController.php
View file @
d089553c
This diff is collapsed.
Click to expand it.
app/Http/function.php
View file @
d089553c
...
...
@@ -1070,7 +1070,6 @@ function ExcessEncryption($info,$appid,$key){
$data
[
'token'
]
=
md5
(
$data
[
'data'
]
.
$data
[
'timestamp'
]
.
$key
.
$appid
);
return
$data
;
}
/**
* 解密第三方仓库加密
*/
...
...
@@ -1087,7 +1086,6 @@ function ExcessDecrypt($data,$key){
$Redis
->
expire
(
$data
[
'token'
],
10
);
return
[
0
,
'success'
,
$info
];
}
/**
* 加密明文
* $data 需要加密的明文 string
...
...
app/Http/routes.php
View file @
d089553c
...
...
@@ -5,5 +5,6 @@ Route::group(['middleware' => 'web'], function () {
Route
::
match
([
'get'
,
'post'
],
'/web/{key}'
,
'WebController@info'
);
Route
::
match
([
'get'
,
'post'
],
'/api/{key}'
,
'ApiController@Entrance'
);
Route
::
match
([
'get'
,
'post'
],
'/helper/{key}'
,
'HelperController@Entrance'
);
Route
::
match
([
'get'
,
'post'
],
'/hd/{key}'
,
'HandleController@Entrance'
);
});
Route
::
match
([
'get'
,
'post'
],
'/hd/{key}'
,
'HandleController@Entrance'
);
\ No newline at end of file
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