Browse Source

Merge branch 'master' into dev

shish 9 months ago
parent
commit
600b49c8db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-ghs/controllers/ProductController.php

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

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