Browse Source

unishop数据类型

lizhen_gitee 11 months ago
parent
commit
94bf68608b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      addons/unishop/controller/Order.php

+ 1 - 0
addons/unishop/controller/Order.php

@@ -99,6 +99,7 @@ class Order extends Base
             // 单个商品
             if ($productId) {
                 $number = input('number',1,'intval');
+                $number = intval($number);
                 $productId = \addons\unishop\extend\Hashids::decodeHex($productId);
                 $product = (new Product)->where(['id' => $productId, 'switch' => Product::SWITCH_ON, 'deletetime' => null])->find();
                 /** 产品基础数据 **/