Răsfoiți Sursa

Merge branch 'master' into dev

shish 8 luni în urmă
părinte
comite
43d07a6e3c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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) {