no message
This commit is contained in:
parent
88aee0a94b
commit
d281c2d4c6
@ -13,7 +13,10 @@ use App\Models\BoxCountry as ModelCountry;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\BladeJctj as ModelBladeJctj;
|
use App\Models\BladeJctj as ModelBladeJctj;
|
||||||
use App\Models\BladeJctjOption as ModelBladeJctjOption;
|
use App\Models\BladeJctjOption as ModelBladeJctjOption;
|
||||||
|
use App\Models\SiteMap;
|
||||||
|
//use Illuminate\Support\Facades\HttpLa;
|
||||||
//use App\Services\Country as ServiceCountry;
|
//use App\Services\Country as ServiceCountry;
|
||||||
|
use App\Services\CountrySpeedService;
|
||||||
|
|
||||||
class GithubController
|
class GithubController
|
||||||
{
|
{
|
||||||
@ -111,6 +114,11 @@ class GithubController
|
|||||||
return $sHuodongStr;
|
return $sHuodongStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function nodeContryStrV2()
|
||||||
|
{
|
||||||
|
return CountrySpeedService::fn_b();
|
||||||
|
}
|
||||||
|
|
||||||
private function nodeContryStr()
|
private function nodeContryStr()
|
||||||
{
|
{
|
||||||
$aBoxCountryRand = ModelCountry::rand();
|
$aBoxCountryRand = ModelCountry::rand();
|
||||||
@ -118,6 +126,14 @@ class GithubController
|
|||||||
return $aBoxCountryRand["str"];
|
return $aBoxCountryRand["str"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// private function getFnSite()
|
||||||
|
// {
|
||||||
|
// if (!empty($this->aArticle["fn_code_short"])) {
|
||||||
|
// $aSite = SiteMap::where("code_short", $this->aArticle["fn_code_short"])->first()->toArray();
|
||||||
|
// $aSite["config"] = json_decode($aSite["config"], true);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
private function mod_blade()
|
private function mod_blade()
|
||||||
{
|
{
|
||||||
$aArticle = $this->aArticle;
|
$aArticle = $this->aArticle;
|
||||||
@ -127,6 +143,11 @@ class GithubController
|
|||||||
// $t = $this->nodeContryStr(); 地区速度
|
// $t = $this->nodeContryStr(); 地区速度
|
||||||
$sDateCode = date("Ymd");
|
$sDateCode = date("Ymd");
|
||||||
|
|
||||||
|
if (!empty($aArticle["fn_code_short"])) {
|
||||||
|
$aSite = SiteMap::where("code_short", $aArticle["fn_code_short"])->first()->toArray();
|
||||||
|
$aSite["config"] = json_decode($aSite["config"], true);
|
||||||
|
}
|
||||||
|
|
||||||
$oBlade = ModelBlade::where("code", $aArticle["mod"])->first();
|
$oBlade = ModelBlade::where("code", $aArticle["mod"])->first();
|
||||||
$aBlade = $oBlade->toArray();
|
$aBlade = $oBlade->toArray();
|
||||||
|
|
||||||
@ -146,9 +167,11 @@ class GithubController
|
|||||||
|
|
||||||
$ex["url_github_clash"] = "https://raw.githubusercontent.com/".$aArticle["user_name"]."/".$aArticle["project_name"]."/main/feed/clash-".$sDateCode.".yaml";
|
$ex["url_github_clash"] = "https://raw.githubusercontent.com/".$aArticle["user_name"]."/".$aArticle["project_name"]."/main/feed/clash-".$sDateCode.".yaml";
|
||||||
$ex["url_github_v2ray"] = "https://raw.githubusercontent.com/".$aArticle["user_name"]."/".$aArticle["project_name"]."/main/feed/v2ray-".$sDateCode.".txt";
|
$ex["url_github_v2ray"] = "https://raw.githubusercontent.com/".$aArticle["user_name"]."/".$aArticle["project_name"]."/main/feed/v2ray-".$sDateCode.".txt";
|
||||||
|
$ex["url_github_singbox"] = "https://raw.githubusercontent.com/".$aArticle["user_name"]."/".$aArticle["project_name"]."/main/feed/singbox-".$sDateCode.".txt";
|
||||||
|
|
||||||
$ex["url_github_io_clash"] = "https://".$aArticle["user_name"].".github.io/feed/clash-".$sDateCode.".yaml";
|
$ex["url_github_io_clash"] = "https://".$aArticle["user_name"].".github.io/feed/clash-".$sDateCode.".yaml";
|
||||||
$ex["url_github_io_v2ray"] = "https://".$aArticle["user_name"].".github.io/feed/v2ray-".$sDateCode.".txt";
|
$ex["url_github_io_v2ray"] = "https://".$aArticle["user_name"].".github.io/feed/v2ray-".$sDateCode.".txt";
|
||||||
|
$ex["url_github_io_singbox"] = "https://".$aArticle["user_name"].".github.io/feed/singbox-".$sDateCode.".txt";
|
||||||
|
|
||||||
$ex["huodong"] = $this->getHuodong($aShip);
|
$ex["huodong"] = $this->getHuodong($aShip);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user