|
...
|
...
|
@@ -231,6 +231,7 @@ public function websiteHtml(Request $request) |
|
|
|
$domain = $request->getHost();
|
|
|
|
$site_token = $request->input('site_token');
|
|
|
|
$zip_count = $request->input('zip_count');
|
|
|
|
$notify_id = $request->input('notify_id');
|
|
|
|
$token = env("SECRET_TOKEN");
|
|
|
|
$pid = env("MERCHANT_NUMBER");
|
|
|
|
$apiUrl = env("API_URL");
|
|
...
|
...
|
@@ -258,7 +259,8 @@ public function websiteHtml(Request $request) |
|
|
|
|
|
|
|
$info = [
|
|
|
|
"domain" => $domain,
|
|
|
|
"zip_count" => $zip_count
|
|
|
|
"zip_count" => $zip_count,
|
|
|
|
"notify_id" => $notify_id
|
|
|
|
];
|
|
|
|
$info = json_encode($info);
|
|
|
|
Redis::lpush(env('REDIS_NAME', 'handle_html'), $info);
|
|
...
|
...
|
@@ -371,8 +373,9 @@ public function limitIp($request) |
|
|
|
* 网站html解压
|
|
|
|
* @param $zip_count
|
|
|
|
* @param $domain
|
|
|
|
* @param $notify_id
|
|
|
|
*/
|
|
|
|
public function websiteHtmlHandle($zip_count, $domain)
|
|
|
|
public function websiteHtmlHandle($zip_count, $domain, $notify_id)
|
|
|
|
{
|
|
|
|
$api_url = env('API_URL');
|
|
|
|
|
|
...
|
...
|
@@ -400,7 +403,7 @@ public function websiteHtmlHandle($zip_count, $domain) |
|
|
|
}
|
|
|
|
|
|
|
|
$transmitUrl = env("TRANSMIT_URL");
|
|
|
|
$this->httpPost($transmitUrl . "api/selfSiteNotify/", json_encode(['domain' => $domain]));
|
|
|
|
$this->httpPost($transmitUrl . "api/selfSiteNotify/", json_encode(['domain' => $domain, 'notify_id' => $notify_id]));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|