no message

This commit is contained in:
hellcat 2025-07-16 20:41:54 +08:00
parent 979c603b86
commit 9321eca62f

View File

@ -30,7 +30,13 @@ class GoodPool extends Model
public static function _rand($sClass)
{
$aGood = self::where("class", $sClass)->get()->toArray();
$oGood = self::where("class", $sClass)->get();
if ($oGood->isEmpty()) {
return [];
}
$aGood = $oGood->toArray();
$iGoodRandKey = array_rand($aGood);