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
xiaowei
9 years ago
Commit
963c7016d52d00051ff2a63edbf3416443e3ad3c
1 parent
e3223c4e
双头部问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
library/Plugin/Helpers.php
library/Plugin/Helpers.php
View file @
963c701
...
...
@@ -354,7 +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":{"param":{"id":"'
.
$articleData
[
'id'
]
.
'"},"shareparam":{"id":"'
.
$articleData
[
'id'
]
.
'"},"share":"/guang/api/v1/share/guang","id":'
.
$articleData
[
'id'
]
.
',"type":
0
,"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'
))
{
...
...
@@ -389,7 +389,6 @@ class Helpers
}
//编辑人员 app跳转url处理 20160601
$articleData
[
'author'
][
'url'
]
=
self
::
getUrlSafe
(
$articleData
[
'author'
][
'url'
])
.
'&openby:yohobuy={"action":"go.h5","params":{"param":{"id":"'
.
$articleData
[
'author'
][
'author_id'
]
.
'"},"share":"","id":'
.
$articleData
[
'author'
][
'author_id'
]
.
',"type":0,"islogin":"N","url":"'
.
'https:'
.
self
::
url
(
'/author/index'
,
array
(),
'guang'
)
.
'"}}'
;
$articleData
[
'author'
][
'url'
]
=
self
::
getUrlSafe
(
$articleData
[
'author'
][
'url'
]);
$result
[
'author'
]
=
$articleData
[
'author'
];
if
(
isset
(
$result
[
'author'
][
'avatar'
]))
{
$result
[
'author'
][
'avatar'
]
=
strtr
(
$result
[
'author'
][
'avatar'
],
array
(
'http://'
=>
'//'
));
...
...
Please
register
or
login
to post a comment