Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
4c05add9b2c621eecf1f2c754ae3d4830e507a7e
2 parents
1e63113f
e9b86db2
Merge branch 'beta/wap' of
http://git.dev.yoho.cn/web/yohobuy
into beta/wap
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
4c05add
...
...
@@ -323,7 +323,7 @@ class DetailModel
self
::
procShowStatus
(
$result
,
$showStatus
,
$isBeginSale
);
$result
[
'cartInfo'
][
'limitProductCode'
]
=
$baseInfo
[
'limitProductCode'
];
$result
[
'cartInfo'
][
'limitCodeUrl'
]
=
self
::
getLimitCodeUrl
(
$baseInfo
[
'limitProductCode'
]);
$result
[
'cartInfo'
][
'limitCodeUrl'
]
=
self
::
getLimitCodeUrl
(
$baseInfo
[
'limitProductCode'
]
,
$baseInfo
[
'erpProductId'
]
);
$result
[
'cartInfo'
][
'limitProductPay'
]
=
Helpers
::
url
(
'/cart/index/orderEnsure'
);
}
else
{
$result
[
'cartInfo'
][
'addToCartUrl'
]
=
Helpers
::
url
(
'/product/buy_'
.
$productId
.
'_'
.
$goodsId
.
'.html'
);
...
...
@@ -879,11 +879,12 @@ class DetailModel
* 根据设备类型获得限购商品跳转app的url
*
* @param string $productCode 限购商品码
* @param string $skn 限购商品skn
* @return string 限购商品跳转url
*/
private
static
function
getLimitCodeUrl
(
$productCode
)
private
static
function
getLimitCodeUrl
(
$productCode
,
$skn
)
{
$url
=
'yohoapp://yoho.app/openwith?limit_product_code='
.
$productCode
;
$url
=
'yohoapp://yoho.app/openwith?limit_product_code='
.
$productCode
.
'&product_skn='
.
$skn
;
// 苹果设备或者苹果IPAD
if
(
strstr
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'iPhone'
)
||
strstr
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'iPad'
))
{
...
...
Please
register
or
login
to post a comment