Commit 0f29b76f authored by 734642908@qq.com's avatar 734642908@qq.com

e

parent 026f7487
...@@ -71,7 +71,7 @@ class FlushController extends BaseController ...@@ -71,7 +71,7 @@ class FlushController extends BaseController
public function cdnUrl() { public function cdnUrl() {
$refreshURL = I("url"); $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?"; $url = "https://cdn.api.qcloud.com/v2/index.php?";
$params['Action'] = "RefreshCdnUrl"; $params['Action'] = "RefreshCdnUrl";
$params['Nonce'] = rand(1000000000, 9999999999); $params['Nonce'] = rand(1000000000, 9999999999);
...@@ -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']}&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); $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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment