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
026f7487
Commit
026f7487
authored
Jan 19, 2019
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e
parent
788dafae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
FlushController.class.php
Application/Home/Controller/FlushController.class.php
+1
-1
No files found.
Application/Home/Controller/FlushController.class.php
View file @
026f7487
...
@@ -80,7 +80,7 @@ class FlushController extends BaseController
...
@@ -80,7 +80,7 @@ class FlushController extends BaseController
$params
[
'urls.0'
]
=
$refreshURL
;
$params
[
'urls.0'
]
=
$refreshURL
;
$secretKey
=
"ZzEJLPOH4mOGKbxGSUTHuMcidMwLZcT9"
;
$secretKey
=
"ZzEJLPOH4mOGKbxGSUTHuMcidMwLZcT9"
;
$origin
=
"POSTcdn.api.qcloud.com/v2/index.php?Action=RefreshCdnUrl&Nonce=
{
$params
[
'Nonce'
]
}
&SecretId=
{
$params
[
'SecretId'
]
}
&Timestamp=
{
$params
[
'Timestamp'
]
}
&
urls.0=
{
$refreshURL
}
"
;
$origin
=
"POSTcdn.api.qcloud.com/v2/index.php?Action=RefreshCdnUrl&Nonce=
{
$params
[
'Nonce'
]
}
&SecretId=
{
$params
[
'SecretId'
]
}
&Timestamp=
{
$params
[
'Timestamp'
]
}
&
limit=10&offset=0
"
;
$origin
=
str_replace
(
'_'
,
'.'
,
$origin
);
$origin
=
str_replace
(
'_'
,
'.'
,
$origin
);
$signStr
=
base64_encode
(
hash_hmac
(
'sha1'
,
$origin
,
$secretKey
,
true
));
$signStr
=
base64_encode
(
hash_hmac
(
'sha1'
,
$origin
,
$secretKey
,
true
));
$params
[
'Signature'
]
=
$signStr
;
$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