Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
14733b5f1f4f789eff8248958b8fdbc95ed6788a
1 parent
d2870ba4
modify add to cart buy_number to int
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
library/Api/Yohobuy.php
library/LibModels/Wap/Home/CartData.php
library/Api/Yohobuy.php
View file @
14733b5
...
...
@@ -22,6 +22,7 @@ class Yohobuy
// const API_URL2 = 'http://api.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
const
API_URL
=
'http://apih5.yoho.cn/'
;
const
API_URL2
=
'http://apih5.yoho.cn/'
;
const
SERVICE_URL
=
'http://serviceh5.yoho.cn/'
;
...
...
@@ -33,6 +34,13 @@ class Yohobuy
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://test2.open.yohobuy.com/';
// /* 预览环境 */
// const API_URL = 'http://preapi.yoho.cn/';
// const API_URL2 = 'http://preapi.yoho.cn/';
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
/**
* 私钥列表
...
...
library/LibModels/Wap/Home/CartData.php
View file @
14733b5
...
...
@@ -34,7 +34,7 @@ class CartData
$param
=
Yohobuy
::
param
();
$param
[
'method'
]
=
'app.Shopping.add'
;
$param
[
'product_sku'
]
=
$productSku
;
$param
[
'buy_number'
]
=
$buyNumber
;
$param
[
'buy_number'
]
=
intval
(
$buyNumber
)
;
$param
[
'goods_type'
]
=
$goodsType
;
$param
[
'edit_product_sku'
]
=
$isEdit
;
$param
[
'selected'
]
=
'Y'
;
...
...
@@ -199,10 +199,10 @@ class CartData
$param
[
'product_sku'
]
=
$sku
;
if
(
!
empty
(
$increaseNum
))
{
$param
[
'increase_number'
]
=
$increaseNum
;
$param
[
'increase_number'
]
=
intval
(
$increaseNum
)
;
}
if
(
!
empty
(
$decreaseNum
))
{
$param
[
'decrease_number'
]
=
$decreaseNum
;
$param
[
'decrease_number'
]
=
intval
(
$decreaseNum
)
;
}
if
(
!
empty
(
$uid
))
{
...
...
Please
register
or
login
to post a comment