...
|
...
|
@@ -323,7 +323,7 @@ class DetailModel |
|
|
self::procShowStatus($result, $showStatus, $isBeginSale);
|
|
|
|
|
|
$result['cartInfo']['limitProductCode'] = $baseInfo['limitProductCode'];
|
|
|
$result['cartInfo']['limitCodeUrl'] = self::getLimitCodeUrl($baseInfo['erpProductId']);
|
|
|
$result['cartInfo']['limitCodeUrl'] = self::getLimitCodeUrl($baseInfo['limitProductCode']);
|
|
|
$result['cartInfo']['limitProductPay'] = Helpers::url('/cart/index/orderEnsure');
|
|
|
} else {
|
|
|
$result['cartInfo']['addToCartUrl'] = Helpers::url('/product/buy_' . $productId . '_' . $goodsId . '.html');
|
...
|
...
|
@@ -878,16 +878,16 @@ class DetailModel |
|
|
/**
|
|
|
* 根据设备类型获得限购商品跳转app的url
|
|
|
*
|
|
|
* @param string $skn 商品skn
|
|
|
* @param string $productCode 限购商品码
|
|
|
* @return string 限购商品跳转url
|
|
|
*/
|
|
|
private static function getLimitCodeUrl($skn)
|
|
|
private static function getLimitCodeUrl($productCode)
|
|
|
{
|
|
|
$url = 'yohoapp://yoho.app/openwith?product_skn=' . $skn;
|
|
|
$url = 'yohoapp://yoho.app/openwith?limit_product_code=' . $productCode;
|
|
|
|
|
|
// 苹果设备或者苹果IPAD
|
|
|
if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
|
|
|
$url = 'yohobuy://' . Helpers::url('/product', array('skn' => $skn));
|
|
|
$url = 'yohobuy://' . Helpers::url('/limitpurchase', array('lp' => $productCode));
|
|
|
}
|
|
|
|
|
|
return $url;
|
...
|
...
|
|