do cuxiao new user coupon feature coupon/hf
Showing
1 changed file
with
0 additions
and
16 deletions
@@ -27,7 +27,6 @@ class HomeController extends AbstractAction | @@ -27,7 +27,6 @@ class HomeController extends AbstractAction | ||
27 | // 检查用户是否登录, 未登录则跳转到登录页 | 27 | // 检查用户是否登录, 未登录则跳转到登录页 |
28 | 28 | ||
29 | // @todo 为了方便测试,支持传uid参数 | 29 | // @todo 为了方便测试,支持传uid参数 |
30 | -<<<<<<< HEAD | ||
31 | $uid = $this->getUid(); | 30 | $uid = $this->getUid(); |
32 | // if (!$uid) { | 31 | // if (!$uid) { |
33 | // $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true); | 32 | // $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true); |
@@ -36,16 +35,6 @@ class HomeController extends AbstractAction | @@ -36,16 +35,6 @@ class HomeController extends AbstractAction | ||
36 | $action = $this->getRequest()->getActionName(); | 35 | $action = $this->getRequest()->getActionName(); |
37 | if (!$uid && $action !== 'index') { | 36 | if (!$uid && $action !== 'index') { |
38 | $this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')))); | 37 | $this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')))); |
39 | -======= | ||
40 | - $this->_uid = $this->getUid(); | ||
41 | - /*if (!$uid) { | ||
42 | - $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true); | ||
43 | - }*/ | ||
44 | - | ||
45 | - $action = $this->getRequest()->getActionName(); | ||
46 | - if (!$this->_uid && $action !== 'index' && !$this->isAjax()) { | ||
47 | - $this->go(Helpers::url('/signin.html')); | ||
48 | ->>>>>>> 1ec902b4c071264e1feadc6a5e4fe2ea287ed658 | ||
49 | } | 38 | } |
50 | 39 | ||
51 | parent::init(); | 40 | parent::init(); |
@@ -64,12 +53,7 @@ class HomeController extends AbstractAction | @@ -64,12 +53,7 @@ class HomeController extends AbstractAction | ||
64 | 'showDownloadApp' => true, | 53 | 'showDownloadApp' => true, |
65 | 'pageFooter' => true | 54 | 'pageFooter' => true |
66 | ); | 55 | ); |
67 | -<<<<<<< HEAD | ||
68 | - $uid = $this->getUid(); | ||
69 | - if ($uid) { | ||
70 | -======= | ||
71 | if ($this->_uid) { | 56 | if ($this->_uid) { |
72 | ->>>>>>> 1ec902b4c071264e1feadc6a5e4fe2ea287ed658 | ||
73 | $data['isLogin'] = true; | 57 | $data['isLogin'] = true; |
74 | $data += UserModel::getUserProfileData($this->_uid); | 58 | $data += UserModel::getUserProfileData($this->_uid); |
75 | $data += UserModel::getInfoNumData($this->_uid); | 59 | $data += UserModel::getInfoNumData($this->_uid); |
-
Please register or login to post a comment