作者 赵彬吉

update

@@ -314,20 +314,7 @@ class RankDataLogic extends BaseLogic @@ -314,20 +314,7 @@ class RankDataLogic extends BaseLogic
314 public function getAiProjects($domain = null) 314 public function getAiProjects($domain = null)
315 { 315 {
316 $file_path = public_path('ai_domains.txt'); 316 $file_path = public_path('ai_domains.txt');
317 - $update_time = filemtime($file_path);  
318 $data = file_get_contents($file_path); 317 $data = file_get_contents($file_path);
319 - if (time() - $update_time > 4 * 3600) {  
320 - $api_url = 'https://demosite5.globalso.com/api/domain';  
321 - try {  
322 - $data = HttpUtils::get($api_url, []);  
323 - if ($data) {  
324 - file_put_contents($file_path, $data);  
325 - }  
326 - } catch (\Exception | GuzzleException $e) {  
327 - errorLog('AI站点项目获取失败', [], $e);  
328 - file_put_contents($file_path, $data);  
329 - }  
330 - }  
331 $data = json_decode($data, true); 318 $data = json_decode($data, true);
332 if ($domain !== null) { 319 if ($domain !== null) {
333 $domain = parse_url($domain); 320 $domain = parse_url($domain);