| 
...
 | 
...
 | 
@@ -116,7 +116,8 @@ function httpPost($url, $data, $header = [],$is_json = true) | 
| 
 | 
 | 
             $header = array(
 | 
| 
 | 
 | 
                 "Accept: application/json",
 | 
| 
 | 
 | 
                 "Content-Type:application/json;charset=utf-8",
 | 
| 
 | 
 | 
                 "Token:".env("WEB_SITE_TOKEN")
 | 
| 
 | 
 | 
                 "token:".env("SECRET_TOKEN"),
 | 
| 
 | 
 | 
                 "pid:".env("MERCHANT_NUMBER")
 | 
| 
 | 
 | 
             );
 | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
         $ch = curl_init();
 | 
| 
...
 | 
...
 | 
@@ -197,9 +198,10 @@ public function uploadAmpVerifyFile(Request $request) | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     public function websiteHtml(Request $request){
 | 
| 
 | 
 | 
         $domain = $request->getHost();
 | 
| 
 | 
 | 
         $token = env("WEB_SITE_TOKEN");
 | 
| 
 | 
 | 
         $token = env("SECRET_TOKEN");
 | 
| 
 | 
 | 
         $pid = env("MERCHANT_NUMBER");
 | 
| 
 | 
 | 
         $apiUrl = env("API_URL");
 | 
| 
 | 
 | 
         $requestUrl = $apiUrl."api/get_url_verify_token/?domain=".$domain."&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 {
 | 
| 
...
 | 
...
 | 
@@ -239,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('解压失败!');
 | 
| 
 | 
 | 
                 // 处理打开压缩文件失败的情况
 | 
...
 | 
...
 | 
 |