Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yangyang
9 years ago
Commit
8700548768a4202814d71d82c05777189b07f5c1
1 parent
760edc89
save
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
yohobuy/m.yohobuy.com/application/models/Guang/StarClass.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/StarClass.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/TrendClassroom2.php
yohobuy/m.yohobuy.com/application/models/Guang/StarClass.php
View file @
8700548
...
...
@@ -163,12 +163,18 @@ class StarClassModel
$result
=
array
();
if
(
isset
(
$data
[
'code'
])
&&
$data
[
'code'
]
==
200
)
{
foreach
(
$data
[
'data'
]
as
$key
=>
$value
)
{
foreach
(
$data
[
'data'
]
[
'top'
]
as
$key
=>
$value
)
{
$result
[
'rankingList'
][
$key
][
'num'
]
=
intval
(
$key
)
+
1
;
$result
[
'rankingList'
][
$key
][
'img'
]
=
Helpers
::
getImageUrl
(
$value
[
'avatar'
],
640
,
240
);
$result
[
'rankingList'
][
$key
][
'name'
]
=
$value
[
'username'
];
$result
[
'rankingList'
][
$key
][
'intimacyNum'
]
=
$value
[
'num'
];
}
$result
[
'userImg'
]
=
$data
[
'data'
][
'userStarInfo'
][
'userImg'
]
=
Helpers
::
getOriginalImg
(
$value
[
'avatar'
]);
$result
[
'userName'
]
=
$data
[
'data'
][
'userStarInfo'
][
'username'
];
$result
[
'rankNum'
]
=
$data
[
'data'
][
'userStarInfo'
][
'userRank'
];
$result
[
'intimacy'
]
=
$data
[
'data'
][
'userStarInfo'
][
'userNum'
];
}
return
$result
;
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/StarClass.php
View file @
8700548
...
...
@@ -59,7 +59,6 @@ class StarClassController extends AbstractAction
}
//星潮教室-星搭配文章请求
public
function
ajaxCollocationAction
()
{
...
...
@@ -88,10 +87,10 @@ class StarClassController extends AbstractAction
if
(
!
$uid
)
{
$refer
=
$this
->
server
(
'HTTP_REFERER'
,
SITE_MAIN
);
if
(
!
$this
->
_isApp
)
{
$this
->
echoJson
(
array
(
'code'
=>
201
,
'data'
=>
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
$refer
)
)));
$this
->
go
(
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
$refer
)));
}
else
{
$referEncode
=
strtr
(
$refer
,
array
(
'/'
=>
'\\/'
));
$this
->
echoJson
(
array
(
'code'
=>
201
,
'data'
=>
$refer
.
'?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
.
$referEncode
.
'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'
)
);
$this
->
go
(
$refer
.
'?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
.
$referEncode
.
'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'
);
}
return
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/TrendClassroom2.php
View file @
8700548
...
...
@@ -568,7 +568,7 @@ class TrendClassroom2Controller extends AbstractAction
public
function
checkInAction
()
{
$data
=
array
(
'title'
=>
'星潮教室'
,
//
'title' => '星潮教室',
'userImg'
=>
'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240'
,
'userName'
=>
'LIFE KK'
,
'rankNum'
=>
'169'
,
...
...
Please
register
or
login
to post a comment