no message
This commit is contained in:
parent
f375086f8b
commit
7bc2682a2b
@ -69,7 +69,7 @@ class CronController
|
||||
return $sMsg;
|
||||
}
|
||||
|
||||
$tmp = str_replace("T", " ", rtrim($aGitHub["updated_at"], "Z")); //updated_at, pushed_at
|
||||
$tmp = str_replace("T", " ", rtrim($aGitHub["pushed_at"], "Z")); //updated_at, pushed_at
|
||||
$tmp = strtotime($tmp);
|
||||
$tmpDate = date("Y-m-d H:i:s", $tmp + (8 * 3600));
|
||||
$tmpTime = strtotime($tmpDate);
|
||||
@ -272,7 +272,8 @@ class CronController
|
||||
$oHttp = new Http();
|
||||
$oHttp->sMethod = "get";
|
||||
// $sMasterUrl = env("api_url_freenode_base")."/api/github/getfntoday/".$sFnCode;
|
||||
$sMasterUrl = "https://".$row["fn_www"]."/api/github/getfntoday/".$sFnCode;
|
||||
// $sMasterUrl = "https://".$row["fn_www"]."/api/github/getfntoday/".$sFnCode;
|
||||
$sMasterUrl = "https://".env("www_master")."/api/v1/freenode/url_feed_today/".$row["fn_code_short"] ?? 'cfn';
|
||||
$sReturn = $oHttp->send($sMasterUrl);
|
||||
$aReturn = json_decode($sReturn, true);
|
||||
|
||||
@ -285,8 +286,11 @@ class CronController
|
||||
}
|
||||
|
||||
if ($aReturn["code"] == "100") {
|
||||
file_put_contents($this->sProjectPath."/feed/clash-".$sFnCode.".yaml", $aReturn["clash"]);
|
||||
file_put_contents($this->sProjectPath."/feed/v2ray-".$sFnCode.".txt", $aReturn["v2ray"]);
|
||||
file_put_contents($this->sProjectPath."/feed/clash-".$sFnCode.".yaml", file_get_contents("https://".$aReturn["data"]["clash"]));
|
||||
file_put_contents($this->sProjectPath."/feed/v2ray-".$sFnCode.".txt", file_get_contents("https://".$aReturn["data"]["v2ray"]));
|
||||
// file_put_contents($this->sProjectPath."/feed/singbox-".$sFnCode.".txt", file_get_contents("https://".$aReturn["data"]["singbox"]));
|
||||
// file_put_contents($this->sProjectPath."/feed/clash-".$sFnCode.".yaml", $aReturn["clash"]);
|
||||
// file_put_contents($this->sProjectPath."/feed/v2ray-".$sFnCode.".txt", $aReturn["v2ray"]);
|
||||
}
|
||||
|
||||
// 写入内容
|
||||
|
||||
@ -69,7 +69,7 @@ class CronV2Controller
|
||||
return $sMsg;
|
||||
}
|
||||
|
||||
$tmp = str_replace("T", " ", rtrim($aGitHub["updated_at"], "Z")); //updated_at, pushed_at
|
||||
$tmp = str_replace("T", " ", rtrim($aGitHub["pushed_at"], "Z")); //updated_at, pushed_at
|
||||
$tmp = strtotime($tmp);
|
||||
$tmpDate = date("Y-m-d H:i:s", $tmp + (8 * 3600));
|
||||
$tmpTime = strtotime($tmpDate);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user