modify add to cart buy_number to int
Showing
2 changed files
with
11 additions
and
3 deletions
@@ -22,6 +22,7 @@ class Yohobuy | @@ -22,6 +22,7 @@ class Yohobuy | ||
22 | // const API_URL2 = 'http://api.open.yohobuy.com/'; | 22 | // const API_URL2 = 'http://api.open.yohobuy.com/'; |
23 | // const SERVICE_URL = 'http://service.api.yohobuy.com/'; | 23 | // const SERVICE_URL = 'http://service.api.yohobuy.com/'; |
24 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 24 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
25 | + | ||
25 | const API_URL = 'http://apih5.yoho.cn/'; | 26 | const API_URL = 'http://apih5.yoho.cn/'; |
26 | const API_URL2 = 'http://apih5.yoho.cn/'; | 27 | const API_URL2 = 'http://apih5.yoho.cn/'; |
27 | const SERVICE_URL = 'http://serviceh5.yoho.cn/'; | 28 | const SERVICE_URL = 'http://serviceh5.yoho.cn/'; |
@@ -33,6 +34,13 @@ class Yohobuy | @@ -33,6 +34,13 @@ class Yohobuy | ||
33 | // const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; | 34 | // const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; |
34 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 35 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
35 | // const API_OLD = 'http://test2.open.yohobuy.com/'; | 36 | // const API_OLD = 'http://test2.open.yohobuy.com/'; |
37 | + | ||
38 | +// /* 预览环境 */ | ||
39 | +// const API_URL = 'http://preapi.yoho.cn/'; | ||
40 | +// const API_URL2 = 'http://preapi.yoho.cn/'; | ||
41 | +// const SERVICE_URL = 'http://serviceh5.yoho.cn/'; | ||
42 | +// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
43 | +// const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
36 | 44 | ||
37 | /** | 45 | /** |
38 | * 私钥列表 | 46 | * 私钥列表 |
@@ -34,7 +34,7 @@ class CartData | @@ -34,7 +34,7 @@ class CartData | ||
34 | $param = Yohobuy::param(); | 34 | $param = Yohobuy::param(); |
35 | $param['method'] = 'app.Shopping.add'; | 35 | $param['method'] = 'app.Shopping.add'; |
36 | $param['product_sku'] = $productSku; | 36 | $param['product_sku'] = $productSku; |
37 | - $param['buy_number'] = $buyNumber; | 37 | + $param['buy_number'] = intval($buyNumber); |
38 | $param['goods_type'] = $goodsType; | 38 | $param['goods_type'] = $goodsType; |
39 | $param['edit_product_sku'] = $isEdit; | 39 | $param['edit_product_sku'] = $isEdit; |
40 | $param['selected'] = 'Y'; | 40 | $param['selected'] = 'Y'; |
@@ -199,10 +199,10 @@ class CartData | @@ -199,10 +199,10 @@ class CartData | ||
199 | $param['product_sku'] = $sku; | 199 | $param['product_sku'] = $sku; |
200 | 200 | ||
201 | if (!empty($increaseNum)) { | 201 | if (!empty($increaseNum)) { |
202 | - $param['increase_number'] = $increaseNum; | 202 | + $param['increase_number'] = intval($increaseNum); |
203 | } | 203 | } |
204 | if (!empty($decreaseNum)) { | 204 | if (!empty($decreaseNum)) { |
205 | - $param['decrease_number'] = $decreaseNum; | 205 | + $param['decrease_number'] = intval($decreaseNum); |
206 | } | 206 | } |
207 | 207 | ||
208 | if (!empty($uid)) { | 208 | if (!empty($uid)) { |
-
Please register or login to post a comment