shish 2 anni fa
parent
commit
5b73ba149e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app-ghs/controllers/ProductController.php

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

@@ -144,6 +144,7 @@ class ProductController extends BaseController
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
         $num = $get['num'] ?? 1;
+        $num = floatval($num);
         $type = $get['type'] ?? 0;
         $info = ProductClass::getById($id, true);
         if (empty($info)) {