Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
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
llewan
ylc.llewan.com
Commits
0f29b76f
Commit
0f29b76f
authored
Jan 19, 2019
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e
parent
026f7487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
FlushController.class.php
Application/Home/Controller/FlushController.class.php
+2
-2
No files found.
Application/Home/Controller/FlushController.class.php
View file @
0f29b76f
...
...
@@ -71,7 +71,7 @@ class FlushController extends BaseController
public
function
cdnUrl
()
{
$refreshURL
=
I
(
"url"
);
$refreshURL
=
"https://res.g.llewan.com/uploadfile/common/qubapikashu-weixin/1.0.1/monsterData.json"
;
//
$refreshURL = "https://res.g.llewan.com/uploadfile/common/qubapikashu-weixin/1.0.1/monsterData.json";
$url
=
"https://cdn.api.qcloud.com/v2/index.php?"
;
$params
[
'Action'
]
=
"RefreshCdnUrl"
;
$params
[
'Nonce'
]
=
rand
(
1000000000
,
9999999999
);
...
...
@@ -80,7 +80,7 @@ class FlushController extends BaseController
$params
[
'urls.0'
]
=
$refreshURL
;
$secretKey
=
"ZzEJLPOH4mOGKbxGSUTHuMcidMwLZcT9"
;
$origin
=
"POSTcdn.api.qcloud.com/v2/index.php?Action=RefreshCdnUrl&Nonce=
{
$params
[
'Nonce'
]
}
&SecretId=
{
$params
[
'SecretId'
]
}
&Timestamp=
{
$params
[
'Timestamp'
]
}
&
limit=10&offset=0
"
;
$origin
=
"POSTcdn.api.qcloud.com/v2/index.php?Action=RefreshCdnUrl&Nonce=
{
$params
[
'Nonce'
]
}
&SecretId=
{
$params
[
'SecretId'
]
}
&Timestamp=
{
$params
[
'Timestamp'
]
}
&
urls.0=
{
$refreshURL
}
"
;
$origin
=
str_replace
(
'_'
,
'.'
,
$origin
);
$signStr
=
base64_encode
(
hash_hmac
(
'sha1'
,
$origin
,
$secretKey
,
true
));
$params
[
'Signature'
]
=
$signStr
;
...
...
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