Showing
1 changed file
with
3 additions
and
2 deletions
@@ -349,7 +349,7 @@ class Helpers | @@ -349,7 +349,7 @@ class Helpers | ||
349 | $result['showTags'] = $showTag; | 349 | $result['showTags'] = $showTag; |
350 | $result['img'] = isset($articleData['src']) ? self::getImageUrl($articleData['src'], 640, 640) : ''; | 350 | $result['img'] = isset($articleData['src']) ? self::getImageUrl($articleData['src'], 640, 640) : ''; |
351 | //逛详情页app跳转url处理 20160601 | 351 | //逛详情页app跳转url处理 20160601 |
352 | - $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"}}'; | 352 | + $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":"' . self::url('/info/index', array(), 'guang') . '","islogin":"N"}}'); |
353 | $result['title'] = $articleData['title']; | 353 | $result['title'] = $articleData['title']; |
354 | $result['text'] = $articleData['intro']; | 354 | $result['text'] = $articleData['intro']; |
355 | $result['publishTime'] = $articleData['publish_time']; | 355 | $result['publishTime'] = $articleData['publish_time']; |
@@ -377,7 +377,8 @@ class Helpers | @@ -377,7 +377,8 @@ class Helpers | ||
377 | $articleData['author']['url'] = Helpers::getFilterUrl($articleData['author']['url']); | 377 | $articleData['author']['url'] = Helpers::getFilterUrl($articleData['author']['url']); |
378 | } | 378 | } |
379 | //编辑人员 app跳转url处理 20160601 | 379 | //编辑人员 app跳转url处理 20160601 |
380 | - $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')) . '"}}'; | 380 | + $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":"' . self::transHttpsUrl(self::url('/author/index', array(), 'guang')) . '"}}'; |
381 | + $articleData['author']['url'] = self::getUrlSafe($articleData['author']['url']); | ||
381 | $result['author'] = $articleData['author']; | 382 | $result['author'] = $articleData['author']; |
382 | if (isset($result['author']['avatar'])) { | 383 | if (isset($result['author']['avatar'])) { |
383 | $result['author']['avatar'] = strtr($result['author']['avatar'], array('http://' => '//')); | 384 | $result['author']['avatar'] = strtr($result['author']['avatar'], array('http://' => '//')); |
-
Please register or login to post a comment