From d543726d4b07688caaa2804e0a96d89a13452e59 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 15 Jul 2025 17:44:26 +0800 Subject: [PATCH] no message --- app/Services/Github/Github.php | 20 +++++++++++--------- app/Services/TG/Hook/Mod/Db.php | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/Services/Github/Github.php b/app/Services/Github/Github.php index 2389e7d..a2742b4 100644 --- a/app/Services/Github/Github.php +++ b/app/Services/Github/Github.php @@ -61,18 +61,20 @@ class Github { $sShip = $oHttp->send($sMasterUrl); $aShip = json_decode($sShip, true); - $aGood = json_decode($aShip["good"], true); -// tomd($aShip, 1); $sGoodStr = ""; - $i = 0; - foreach ($aGood as $row) { - if ($i !== 0) { - $sGoodStr .= " + if (isset($aShip["good"])) { + $aGood = json_decode($aShip["good"], true); + $sGoodStr = ""; + $i = 0; + foreach ($aGood as $row) { + if ($i !== 0) { + $sGoodStr .= " -"; + "; + } + $sGoodStr .= $row; + $i++; } - $sGoodStr .= $row; - $i++; } $aShip["good_str"] = $sGoodStr; diff --git a/app/Services/TG/Hook/Mod/Db.php b/app/Services/TG/Hook/Mod/Db.php index f7e6ab1..47c5b6d 100644 --- a/app/Services/TG/Hook/Mod/Db.php +++ b/app/Services/TG/Hook/Mod/Db.php @@ -22,7 +22,7 @@ class Db extends Base { public function me() { $str = " - 添加字段:ALTER Table `ship` ADD `good_test` TEXT DEFAULT NULL AFTER `api_huodong` + 添加字段:ALTER TABLE `ship` ADD `good_test` TEXT DEFAULT NULL AFTER `api_huodong` 删除字段:ALTER TABLE `ship` DROP COLUMN `good_test`