Showing
2 changed files
with
2 additions
and
2 deletions
@@ -144,7 +144,7 @@ class IndexController extends AbstractAction | @@ -144,7 +144,7 @@ class IndexController extends AbstractAction | ||
144 | default: // 所有 | 144 | default: // 所有 |
145 | $gender = '1,2,3'; | 145 | $gender = '1,2,3'; |
146 | } | 146 | } |
147 | - $uid = $this->get('uid'); | 147 | + $uid = $this->getUid(false); |
148 | $udid = $this->get('udid'); | 148 | $udid = $this->get('udid'); |
149 | if ($uid) { | 149 | if ($uid) { |
150 | $this->setSession('uid', $uid); | 150 | $this->setSession('uid', $uid); |
@@ -67,7 +67,7 @@ class OptController extends AbstractAction | @@ -67,7 +67,7 @@ class OptController extends AbstractAction | ||
67 | } | 67 | } |
68 | 68 | ||
69 | /* 判断用户是否登录 */ | 69 | /* 判断用户是否登录 */ |
70 | - $uid = $this->getSession('uid'); | 70 | + $uid = $this->getUid(false); |
71 | if (empty($uid) || !is_numeric($uid)) { | 71 | if (empty($uid) || !is_numeric($uid)) { |
72 | break; | 72 | break; |
73 | } | 73 | } |
-
Please register or login to post a comment