作者 刘锟

update

... ... @@ -59,7 +59,7 @@ public function websiteHandle($infoArr)
$this->output('网站更新开始');
$noticeController = new NoticeController();
$noticeController->websiteHtmlHandle($infoArr["zip_count"], $infoArr["domain"]);
$noticeController->websiteHtmlHandle($infoArr["zip_count"], $infoArr["domain"], $infoArr["notify_id"]);
$this->output('网站更新结束');
}
... ...
... ... @@ -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]));
}
/**
... ...