...
|
...
|
@@ -12,9 +12,6 @@ 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';
|
|
|
|
|
|
protected $_uid;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 检测登录状态
|
|
|
*
|
...
|
...
|
@@ -22,10 +19,12 @@ class XinshiliController extends HuodongAction |
|
|
private function getLoggedUid()
|
|
|
{
|
|
|
if ($this->_isApp) {
|
|
|
$this->_uid = $this->get('uid');
|
|
|
$uid = $this->get('uid');
|
|
|
} else {
|
|
|
$this->_uid = $this->getUid();
|
|
|
$uid = $this->getUid();
|
|
|
}
|
|
|
|
|
|
return $uid;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -35,8 +34,7 @@ class XinshiliController extends HuodongAction |
|
|
{
|
|
|
$playUrl = Helpers::url('/cuxiao/xinshili/index');
|
|
|
|
|
|
$this->getLoggedUid();
|
|
|
if (!$this->_uid) {
|
|
|
if (!$this->getLoggedUid()) {
|
|
|
if (!$this->_isApp) {
|
|
|
$this->go(Helpers::url('/signin.html', array('refer' => $playUrl), 'default'));
|
|
|
} else {
|
...
|
...
|
@@ -63,6 +61,8 @@ class XinshiliController extends HuodongAction |
|
|
'home.js'
|
|
|
),
|
|
|
'couponUrl' => $myCouponUrl, // 个人中心优惠券地址
|
|
|
'isApp' => $this->_isApp,
|
|
|
'getCouponUrl' => Helpers::url('/cuxiao/xinshili/sendCoupon', array('uid' => $this->getLoggedUid())),
|
|
|
'banner' => array(
|
|
|
'img' => '',
|
|
|
'url' => 'http://feature.yoho.cn/0302/0302APPHOME/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"YOHO!BUY有货【春潮新势力】","url":"http://feature.yoho.cn/0302/0302APPHOME/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"386"},"param":{"share_id":"386"}}'
|
...
|
...
|
@@ -89,7 +89,8 @@ class XinshiliController extends HuodongAction |
|
|
}
|
|
|
|
|
|
$activityId = $this->getActivityId();
|
|
|
$result = XinshiliModel::getXinshiliCoupon($this->_uid, $activityId);
|
|
|
$uid = $this->getLoggedUid();
|
|
|
$result = XinshiliModel::getXinshiliCoupon($uid, $activityId);
|
|
|
} while (false);
|
|
|
|
|
|
$this->echoJson($result);
|
...
|
...
|
|