From e4ed419a6f582a62518a687edd5101da113f7312 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Thu, 25 Dec 2025 19:41:25 +0800 Subject: [PATCH] no message --- app/Models/GemboxDns.php | 15 +++++++++ app/Services/Tg/Hook/Mod/GemboxDns.php | 46 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100755 app/Models/GemboxDns.php create mode 100644 app/Services/Tg/Hook/Mod/GemboxDns.php diff --git a/app/Models/GemboxDns.php b/app/Models/GemboxDns.php new file mode 100755 index 00000000..c4681b26 --- /dev/null +++ b/app/Models/GemboxDns.php @@ -0,0 +1,15 @@ +oDog = new Dog(new ModelGemboxDns()); + $this->oDog->_setDogName("GemboxDns"); + $this->oDog->_setPrimaryKey("code"); // 可选,默认id +// $this->oDog->_setJsonField(["config"]); +// $this->oDog->_setStrField(["content"]); +// $this->aUpdate = $aUpdate; + } + + public function __call($sName, $aArg) + { + return $this->oDog->$sName($aArg[0]); + } + + public function show() + { + $aDnsList = ModelGemboxDns::orderBy("code")->get()->toArray(); + + $sStr = ""; + foreach ($aDnsList as $aDns) { + + $sStatus = $aDns["status"] == 1 ? '' : ' - *失效*'; + + $sStr .= "\n\n"; + $sStr .= $aDns["code"]." - ".$aDns["provider"]." - ".$aDns["name"]." - ".$aDns["addr"].$sStatus; + } + + return $sStr; + } + + + +}