shish 2 years ago
parent
commit
e6dc0d3293
1 changed files with 1 additions and 0 deletions
  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;
         $id = $get['id'] ?? 0;
         $num = $get['num'] ?? 1;
         $num = $get['num'] ?? 1;
         $num = floatval($num);
         $num = floatval($num);
+        $num = (int)$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)) {