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
2e920144ec1add311a220fa966272fb1c9b21c1f
1 parent
d828be7a
go add guang detail
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
library/Plugin/Helpers.php
library/Plugin/Helpers.php
View file @
2e92014
...
...
@@ -354,7 +354,8 @@ 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","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":{"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'] = $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'
))
{
...
...
Please
register
or
login
to post a comment