作者 刘锟

update

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