...
|
...
|
@@ -201,7 +201,7 @@ public function websiteHtml(Request $request){ |
|
|
$token = env("SECRET_TOKEN");
|
|
|
$pid = env("MERCHANT_NUMBER");
|
|
|
$apiUrl = env("API_URL");
|
|
|
$requestUrl = $apiUrl."api/get_url_verify_token/?pid=".$pid."&token=".$token;
|
|
|
$requestUrl = $apiUrl."api/get_url_verify_token/?pid=".$pid."&token=".$token."&domain=".$domain;
|
|
|
@file_put_contents(storage_path('logs/notify_get_url.log'), date('Y-m-d H:i:s') . "接收到通知:". $requestUrl . PHP_EOL, FILE_APPEND);
|
|
|
|
|
|
try {
|
...
|
...
|
@@ -241,6 +241,9 @@ public function websiteHtmlHandle($url,$domain) |
|
|
$zip->extractTo($outputFolder);
|
|
|
$zip->close();
|
|
|
$this->deleteDirectory($targetFile);
|
|
|
|
|
|
$transmitUrl = env("TRANSMIT_URL");
|
|
|
$this->httpPost($transmitUrl."api/selfSiteNotify/",json_encode(['domain'=>$domain]));
|
|
|
} else {
|
|
|
return $this->error('解压失败!');
|
|
|
// 处理打开压缩文件失败的情况
|
...
|
...
|
|