...
|
...
|
@@ -9,14 +9,12 @@ use Plugin\Helpers; |
|
|
*/
|
|
|
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';
|
|
|
|
|
|
// const STATIC_FILE = 'http://localhost:2222/1.0.4';
|
|
|
const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili/1.0.4';
|
|
|
|
|
|
/**
|
|
|
* 检测登录状态
|
|
|
*
|
|
|
* @return int
|
|
|
*/
|
|
|
private function getLoggedUid()
|
|
|
{
|
...
|
...
|
@@ -36,8 +34,7 @@ class XinshiliController extends HuodongAction |
|
|
{
|
|
|
$playUrl = Helpers::url('/cuxiao/xinshili/index');
|
|
|
|
|
|
$uid = $this->getLoggedUid();
|
|
|
if (!$uid) {
|
|
|
if (!$this->getLoggedUid()) {
|
|
|
if (!$this->_isApp) {
|
|
|
$this->go(Helpers::url('/signin.html', array('refer' => $playUrl), 'default'));
|
|
|
} else {
|
...
|
...
|
@@ -64,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"}}'
|
...
|
...
|
|