Просмотр исходного кода

Merge branch 'master' into dev

shish 8 месяцев назад
Родитель
Сommit
43d07a6e3c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ProductController.php

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

@@ -43,7 +43,7 @@ class ProductController extends BaseController
         $id = $get['id'] ?? 0;
         $amount = $get['avCost'] ?? 0;
         $product = ProductClass::getById($id, true);
-        if (empty($info)) {
+        if (empty($product)) {
             util::fail('没有找到花材');
         }
         if ($product->mainId != $this->mainId) {