优化错误提示,优化辅种匹配算法

master
iyuu.cn 5 years ago
parent 9044d3575e
commit 66490efad7
  1. 4
      app/AutoReseed.php

@ -126,7 +126,7 @@ class AutoReseed
$res = $curl->post(self::$apiUrl);
$sites = json_decode($res->response, true);
// 数据写入本地
if (true) {
if ($sites) {
$json = array_column($sites, null, 'site');
ksort($json);
$json = json_encode($json, JSON_UNESCAPED_UNICODE);
@ -134,6 +134,8 @@ class AutoReseed
$file_pointer = @fopen($myfile, "w");
$worldsnum = @fwrite($file_pointer, $json);
@fclose($file_pointer);
}else {
die('远端服务器无响应,请稍后再试!!!');
}
$data = [];
$i = $j = $k = 0;

Loading…
Cancel
Save