no message

This commit is contained in:
hellcat 2025-07-16 20:45:41 +08:00
parent 9321eca62f
commit 7a13411948
2 changed files with 6 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class GithubController
$aShip = $oShip->toArray();
$aGoodRand = ModelGoodPool::_rand($aArticle["ship_code"]);
$sGoodRand = ModelGoodPool::_goodToGithub($aGoodRand["good"]);
$sGoodRand = ModelGoodPool::_goodToGithub($aGoodRand["good"] ?? []);
$ex["good_rand"] = $sGoodRand;
$sGoodShip = ModelGoodPool::_goodToGithub($aShip["good"]);

View File

@ -47,6 +47,11 @@ class GoodPool extends Model
public static function _goodToGithub($sGood, $bEnter = true)
{
if (!$sGood) {
return '';
}
$aGood = json_decode($sGood);
$str = "";