Showing
3 changed files
with
4 additions
and
3 deletions
@@ -393,7 +393,7 @@ class Helpers | @@ -393,7 +393,7 @@ class Helpers | ||
393 | } | 393 | } |
394 | //编辑人员 app跳转url处理 20160601 | 394 | //编辑人员 app跳转url处理 20160601 |
395 | $isLogin = is_null($uid) ? 'N' : 'Y'; | 395 | $isLogin = is_null($uid) ? 'N' : 'Y'; |
396 | - $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":"' . $isLogin . '","url":"' . 'https:' . self::url('/author/index', array('uid' => $uid), 'guang') . '"}}'; | 396 | + $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":"' . $isLogin . '","url":"' . 'https:' . self::url('/author/index', array('uid' => $uid), 'guang') . '"}}&uid=' . $uid; |
397 | $result['author'] = $articleData['author']; | 397 | $result['author'] = $articleData['author']; |
398 | if (isset($result['author']['avatar'])) { | 398 | if (isset($result['author']['avatar'])) { |
399 | $result['author']['avatar'] = strtr($result['author']['avatar'], array('http://' => '//')); | 399 | $result['author']['avatar'] = strtr($result['author']['avatar'], array('http://' => '//')); |
@@ -162,7 +162,8 @@ function initInfosEvt($container) { | @@ -162,7 +162,8 @@ function initInfosEvt($container) { | ||
162 | data: { | 162 | data: { |
163 | id: getUrlParam('id'), | 163 | id: getUrlParam('id'), |
164 | opt: opt, | 164 | opt: opt, |
165 | - yh_channel: yhChannel | 165 | + yh_channel: yhChannel, |
166 | + uid: getUrlParam('uid') | ||
166 | }, | 167 | }, |
167 | success: function(data) { | 168 | success: function(data) { |
168 | if (data.code && data.code === 200) { | 169 | if (data.code && data.code === 200) { |
@@ -81,7 +81,7 @@ class OptController extends AbstractAction | @@ -81,7 +81,7 @@ class OptController extends AbstractAction | ||
81 | if ($isNoLogin) { | 81 | if ($isNoLogin) { |
82 | $playUrl = Helpers::url('/author/index', '', 'guang'); | 82 | $playUrl = Helpers::url('/author/index', '', 'guang'); |
83 | $playUrlEncode = strtr($playUrl, array('/' => '\\/')); | 83 | $playUrlEncode = strtr($playUrl, array('/' => '\\/')); |
84 | - $jumpUrl = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app","id":"' . $id . '",""yh_channel":"' . $yhChannel . '",""uid":"' . $uid . '"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'; | 84 | + $jumpUrl = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app","id":"' . $id . '",""yh_channel":"' . $yhChannel . '",""uid":"' . $uid . '"}},"requesturl":{"url":"","param":{}},"priority":"N"}}&uid=' . $uid; |
85 | $result = array('code' => 200, 'message' => '未登录', 'data' => array('jumpUrl' => $jumpUrl, 'jump' => true)); | 85 | $result = array('code' => 200, 'message' => '未登录', 'data' => array('jumpUrl' => $jumpUrl, 'jump' => true)); |
86 | break; | 86 | break; |
87 | } else { | 87 | } else { |
-
Please register or login to post a comment