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

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

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