Showing
1 changed file
with
1 additions
and
2 deletions
@@ -354,7 +354,7 @@ class Helpers | @@ -354,7 +354,7 @@ class Helpers | ||
354 | $result['showTags'] = $showTag; | 354 | $result['showTags'] = $showTag; |
355 | $result['img'] = isset($articleData['src']) ? self::getImageUrl($articleData['src'], 640, 640) : ''; | 355 | $result['img'] = isset($articleData['src']) ? self::getImageUrl($articleData['src'], 640, 640) : ''; |
356 | //逛详情页app跳转url处理 20160601 | 356 | //逛详情页app跳转url处理 20160601 |
357 | - $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"}}'; | 357 | + $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"}}'; |
358 | //$result['url'] = $articleData['url']; //$isApp ? $articleData['url'] : self::url('/info/index', array('id' => $articleData['id']), 'guang'); | 358 | //$result['url'] = $articleData['url']; //$isApp ? $articleData['url'] : self::url('/info/index', array('id' => $articleData['id']), 'guang'); |
359 | 359 | ||
360 | if (strrpos($result['url'], 'feature.yoho.cn') || strrpos($result['url'], 'cdn.yoho.cn')) { | 360 | if (strrpos($result['url'], 'feature.yoho.cn') || strrpos($result['url'], 'cdn.yoho.cn')) { |
@@ -389,7 +389,6 @@ class Helpers | @@ -389,7 +389,6 @@ class Helpers | ||
389 | } | 389 | } |
390 | //编辑人员 app跳转url处理 20160601 | 390 | //编辑人员 app跳转url处理 20160601 |
391 | $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') . '"}}'; | 391 | $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') . '"}}'; |
392 | - $articleData['author']['url'] = self::getUrlSafe($articleData['author']['url']); | ||
393 | $result['author'] = $articleData['author']; | 392 | $result['author'] = $articleData['author']; |
394 | if (isset($result['author']['avatar'])) { | 393 | if (isset($result['author']['avatar'])) { |
395 | $result['author']['avatar'] = strtr($result['author']['avatar'], array('http://' => '//')); | 394 | $result['author']['avatar'] = strtr($result['author']['avatar'], array('http://' => '//')); |
-
Please register or login to post a comment