@@ -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)) {