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
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
2fd640c4ee2373e6f0fa0d761421b52d93282e65
1 parent
2e920144
user shop fav link
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
library/Plugin/Helpers.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
library/Plugin/Helpers.php
View file @
2fd640c
...
...
@@ -354,8 +354,7 @@ class Helpers
$result
[
'showTags'
]
=
$showTag
;
$result
[
'img'
]
=
isset
(
$articleData
[
'src'
])
?
self
::
getImageUrl
(
$articleData
[
'src'
],
640
,
640
)
:
''
;
//逛详情页app跳转url处理 20160601
$result
[
'url'
]
=
self
::
getUrlSafe
(
$articleData
[
'url'
])
.
'&openby:yohobuy={"action":"go.h5","params":{"id":"'
.
$articleData
[
'id'
]
.
'","share":"/guang/api/v1/share/guang?id='
.
$articleData
[
'id'
]
.
'","shareparam":{"id":"'
.
$articleData
[
'id'
]
.
'"},"islogin":"N","type":1,"url":"http://guang.m.yohobuy.com/info/index","param":{"id":"'
.
$articleData
[
'id'
]
.
'"}}}'
;
// $result['url'] = self::getUrlSafe($articleData['url']) . '&openby:yohobuy={"action":"go.h5","params":{"param":{"id":"' . $articleData['id'] . '"},"shareparam":{"id":"' . $articleData['id'] . '"},"share":"/guang/api/v1/share/guang","id":' . $articleData['id'] . ',"type":1,"url":"' .'https:'. self::url('/info/index', array(), 'guang') . '","islogin":"N"}}';
$result
[
'url'
]
=
self
::
getUrlSafe
(
$articleData
[
'url'
])
.
'&openby:yohobuy={"action":"go.h5","params":{"param":{"id":"'
.
$articleData
[
'id'
]
.
'"},"shareparam":{"id":"'
.
$articleData
[
'id'
]
.
'"},"share":"/guang/api/v1/share/guang","id":'
.
$articleData
[
'id'
]
.
',"type":1,"url":"'
.
'https:'
.
self
::
url
(
'/info/index'
,
array
(),
'guang'
)
.
'","islogin":"N"}}'
;
//$result['url'] = $articleData['url']; //$isApp ? $articleData['url'] : self::url('/info/index', array('id' => $articleData['id']), 'guang');
if
(
strrpos
(
$result
[
'url'
],
'feature.yoho.cn'
)
||
strrpos
(
$result
[
'url'
],
'cdn.yoho.cn'
))
{
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
2fd640c
...
...
@@ -295,8 +295,11 @@ class UserModel
$brand
[
'brandName'
]
=
$val
[
'brand_name'
];
$brand
[
'update'
]
=
$val
[
'new_product_num'
];
$brand
[
'discount'
]
=
$val
[
'product_discount_num'
];
$brand
[
'link'
]
=
Helpers
::
url
(
''
,
array
(),
$val
[
'brand_domain'
]);
if
(
$val
[
'brandOrShopType'
]
==
'brandOrShopType'
)
{
$brand
[
'link'
]
=
Helpers
::
url
(
'/product/index/brand'
,
array
(
'shop_id'
=>
$val
[
'shop_id'
]));
}
else
{
$brand
[
'link'
]
=
Helpers
::
url
(
''
,
array
(),
$val
[
'brand_domain'
]);
}
// 处理品牌产品
$product
=
array
();
foreach
(
$val
[
'new_product'
]
as
$one
)
{
...
...
Please
register
or
login
to post a comment