shish 2 年 前
コミット
5196330564
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app-hd/controllers/ProductController.php

+ 1 - 1
app-hd/controllers/ProductController.php

@@ -568,7 +568,7 @@ class ProductController extends BaseController
             util::fail('没有花材信息');
         }
         $ghsInfo = GhsClass::getById($ghsId, true);
-        $level = $ghsInfo->giveLevel ? $ghsInfo->giveLevel : 1;
+        $level = isset($ghsInfo->giveLevel) ? $ghsInfo->giveLevel : 1;
         noticeUtil::push($ghsId . ' ' . $level, '15280215347');
         $list = ProductClass::groupProductInfo([$product], $level);
         $product = current($list);