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`