...
|
...
|
@@ -372,10 +372,12 @@ class Helpers |
|
|
if ($isApp) {
|
|
|
$result['collect'] = array();
|
|
|
$result['collect']['isCollected'] = isset($articleData['isFavor']) && $articleData['isFavor'] === 'Y';
|
|
|
$collectUrl = 'javascript:;';
|
|
|
// $originUrl = 'http:' . Helpers::url('/author/index',null,'guang') . $_SERVER["QUERY_STRING"]; // 跳转回的链接 https
|
|
|
$originUrl = Helpers::url('/author/index',null,'guang') . $_SERVER["QUERY_STRING"]; // 跳转回的链接
|
|
|
$collectUrl = 'javascript:;'; // 根据用户是否登录做处理的链接
|
|
|
if (empty($uid)) {
|
|
|
$playUrlEncode = strtr($articleData['url'], array('/' => '\\/'));
|
|
|
$collectUrl = $articleData['url'] . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
|
|
|
$playUrlEncode = strtr($originUrl, array('/' => '\\/'));
|
|
|
$collectUrl = $originUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
|
|
|
}
|
|
|
$result['collect']['url'] = $collectUrl;
|
|
|
} // 点赞
|
...
|
...
|
|