Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
Rock Zhang
9 years ago
Commit
60bc59b26dc6b019f0688706be9e3ab150449fd0
1 parent
3be474a6
修复新势力领券活动登陆跳转问题
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Xinshili.php
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Xinshili.php
View file @
60bc59b
...
...
@@ -40,14 +40,12 @@ class XinshiliController extends HuodongAction
$uid
=
$this
->
getLoggedUid
();
if
(
!
$uid
)
{
if
(
!
$this
->
_isApp
)
{
$this
->
go
(
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
Helpers
::
url
(
'/cuxiao/
yuanxiao/info
'
)),
'default'
));
$this
->
go
(
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
Helpers
::
url
(
'/cuxiao/
xinshili/index
'
)),
'default'
));
}
else
{
$playUrl
=
Helpers
::
url
(
'/cuxiao/
yuanxiao
/index'
);
$playUrl
=
Helpers
::
url
(
'/cuxiao/
xinshili
/index'
);
$this
->
go
(
$playUrl
.
'?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
.
$playUrlEncode
.
'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'
);
}
}
return
$uid
;
}
/**
...
...
@@ -55,10 +53,7 @@ class XinshiliController extends HuodongAction
*/
public
function
indexAction
()
{
$uid
=
$this
->
checkLogin
();
// 该变量用来控制和显示页面的弹出提示
$showPopupFlag
=
'0'
;
$this
->
checkLogin
();
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl
=
Helpers
::
url
(
'/home/coupons'
,
null
,
'default'
)
.
'?openby:yohobuy={"action":"go.coupon"}'
;
...
...
@@ -79,14 +74,14 @@ class XinshiliController extends HuodongAction
'shareTitle'
=>
'新势力'
,
'shareDesc'
=>
'新势力领券'
,
'shareImg'
=>
'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png'
,
'shareLink'
=>
Helpers
::
url
(
'/cuxiao/
girlsday
/index'
)
'shareLink'
=>
Helpers
::
url
(
'/cuxiao/
xinshili
/index'
)
));
}
/**
* 领券接口
*/
public
function
sendCoupon
()
public
function
sendCoupon
Action
()
{
$result
=
array
(
'code'
=>
201
);
...
...
Please
register
or
login
to post a comment