shawenguan 1 年之前
父節點
當前提交
c15f1ee703
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      ResSub/check.php

+ 3 - 2
ResSub/check.php

@@ -6,7 +6,7 @@ $URL_MAP = array(
     // https://yyds01.emovpn.top/#/subscribe
     'emovpn' => 'https://sgt.278986.xyz/api/v1/client/subscribe?token=d117717961314da13e57bd4bd7dadf9b',
     // https://xb.freeapp.buzz/#/dashboard
-    'freeapp' => 'https://free.kcjs.me/api/v1/client/subscribe?token=affc8f19821abf481d7f32ffacd8d216',
+    'freeapp' => 'https://xb.freeapp.buzz/api/v1/client/subscribe?token=affc8f19821abf481d7f32ffacd8d216',
     // https://ikuuu.pw/user
     'ikuuu' => 'https://wgjfh.no-mad-world.club/link/h49DIHaJyf4h6lGS?clash=4&extend=1',
     'aiboboxx' => 'https://raw.gitmirror.com/aiboboxx/v2rayfree/main/README.md',
@@ -37,7 +37,8 @@ function getUrlContent($url) {
     curl_setopt($ch, CURLOPT_HEADER, false); // 不返回头部信息
     // 对于HTTPS URL,如果无有效证书,需要禁止cURL验证对等证书
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
-
+    // 当遇到location跳转时,直接抓取跳转的页面
+    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
     // 执行cURL会话
     $content = curl_exec($ch);