Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Rock Zhang
9 years ago
Commit
06e548db9a5b95138b5040a57e18ddcdcd514dff
1 parent
974aec16
更新新势力领券活动有关逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 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 @
06e548d
...
...
@@ -12,21 +12,20 @@ class XinshiliController extends HuodongAction
// const STATIC_FILE = 'http://localhost:2222/1.0.3';
const
STATIC_FILE
=
'http://cdn.yoho.cn/huodong/2016xinshili/1.0.3'
;
private
$_uid
;
/**
* 检测登录状态
*
* @return int
*/
private
function
getLoggedUid
()
{
if
(
$this
->
_isApp
)
{
$uid
=
$this
->
get
(
'uid'
);
$
this
->
_
uid
=
$this
->
get
(
'uid'
);
}
else
{
$uid
=
$this
->
getUid
();
$
this
->
_
uid
=
$this
->
getUid
();
}
return
$uid
;
}
/**
...
...
@@ -36,8 +35,8 @@ class XinshiliController extends HuodongAction
{
$playUrl
=
Helpers
::
url
(
'/cuxiao/xinshili/index'
);
$uid
=
$this
->
getLoggedUid
();
if
(
!
$uid
)
{
$this
->
getLoggedUid
();
if
(
!
$this
->
_uid
)
{
if
(
!
$this
->
_isApp
)
{
$this
->
go
(
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
$playUrl
),
'default'
));
}
else
{
...
...
@@ -90,8 +89,7 @@ class XinshiliController extends HuodongAction
}
$activityId
=
$this
->
getActivityId
();
$uid
=
$this
->
getLoggedUid
();
$result
=
XinshiliModel
::
getXinshiliCoupon
(
$uid
,
$activityId
);
$result
=
XinshiliModel
::
getXinshiliCoupon
(
$this
->
_uid
,
$activityId
);
}
while
(
false
);
$this
->
echoJson
(
$result
);
...
...
Please
register
or
login
to post a comment