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