shish 2 жил өмнө
parent
commit
5b73ba149e

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

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