Merge branch 'feature/xingchao' of http://git.dev.yoho.cn/web/yohobuy into feature/xingchao
Showing
3 changed files
with
10 additions
and
5 deletions
@@ -163,12 +163,18 @@ class StarClassModel | @@ -163,12 +163,18 @@ class StarClassModel | ||
163 | 163 | ||
164 | $result = array(); | 164 | $result = array(); |
165 | if (isset($data['code']) && $data['code'] == 200) { | 165 | if (isset($data['code']) && $data['code'] == 200) { |
166 | - foreach ($data['data'] as $key=>$value) { | 166 | + foreach ($data['data']['top'] as $key=>$value) { |
167 | $result['rankingList'][$key]['num'] = intval($key) + 1; | 167 | $result['rankingList'][$key]['num'] = intval($key) + 1; |
168 | $result['rankingList'][$key]['img'] = Helpers::getImageUrl($value['avatar'], 640, 240); | 168 | $result['rankingList'][$key]['img'] = Helpers::getImageUrl($value['avatar'], 640, 240); |
169 | $result['rankingList'][$key]['name'] = $value['username']; | 169 | $result['rankingList'][$key]['name'] = $value['username']; |
170 | $result['rankingList'][$key]['intimacyNum'] = $value['num']; | 170 | $result['rankingList'][$key]['intimacyNum'] = $value['num']; |
171 | } | 171 | } |
172 | + | ||
173 | + $result['userImg'] = $data['data']['userStarInfo']['userImg'] = Helpers::getOriginalImg($value['avatar']); | ||
174 | + $result['userName'] = $data['data']['userStarInfo']['username']; | ||
175 | + $result['rankNum'] = $data['data']['userStarInfo']['userRank']; | ||
176 | + $result['intimacy'] = $data['data']['userStarInfo']['userNum']; | ||
177 | + | ||
172 | } | 178 | } |
173 | 179 | ||
174 | return $result; | 180 | return $result; |
@@ -59,7 +59,6 @@ class StarClassController extends AbstractAction | @@ -59,7 +59,6 @@ class StarClassController extends AbstractAction | ||
59 | } | 59 | } |
60 | 60 | ||
61 | 61 | ||
62 | - | ||
63 | //星潮教室-星搭配文章请求 | 62 | //星潮教室-星搭配文章请求 |
64 | public function ajaxCollocationAction() | 63 | public function ajaxCollocationAction() |
65 | { | 64 | { |
@@ -88,10 +87,10 @@ class StarClassController extends AbstractAction | @@ -88,10 +87,10 @@ class StarClassController extends AbstractAction | ||
88 | if (!$uid) { | 87 | if (!$uid) { |
89 | $refer = $this->server('HTTP_REFERER', SITE_MAIN); | 88 | $refer = $this->server('HTTP_REFERER', SITE_MAIN); |
90 | if (!$this->_isApp) { | 89 | if (!$this->_isApp) { |
91 | - $this->echoJson(array('code'=>201,'data'=>Helpers::url('/signin.html', array('refer' => $refer)))); | 90 | + $this->go(Helpers::url('/signin.html', array('refer' => $refer))); |
92 | } else { | 91 | } else { |
93 | $referEncode = strtr($refer, array('/' => '\\/')); | 92 | $referEncode = strtr($refer, array('/' => '\\/')); |
94 | - $this->echoJson(array('code'=>201,'data'=>$refer . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $referEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}')); | 93 | + $this->go($refer . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $referEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'); |
95 | } | 94 | } |
96 | return; | 95 | return; |
97 | } | 96 | } |
@@ -568,7 +568,7 @@ class TrendClassroom2Controller extends AbstractAction | @@ -568,7 +568,7 @@ class TrendClassroom2Controller extends AbstractAction | ||
568 | public function checkInAction() | 568 | public function checkInAction() |
569 | { | 569 | { |
570 | $data = array( | 570 | $data = array( |
571 | - 'title' => '星潮教室', | 571 | + //'title' => '星潮教室', |
572 | 'userImg' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240', | 572 | 'userImg' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240', |
573 | 'userName' => 'LIFE KK', | 573 | 'userName' => 'LIFE KK', |
574 | 'rankNum' => '169', | 574 | 'rankNum' => '169', |
-
Please register or login to post a comment