Showing
1 changed file
with
6 additions
and
6 deletions
@@ -156,18 +156,18 @@ class RegisterController extends WebAction | @@ -156,18 +156,18 @@ class RegisterController extends WebAction | ||
156 | $data['message'] = '密码不正确'; | 156 | $data['message'] = '密码不正确'; |
157 | break; | 157 | break; |
158 | } | 158 | } |
159 | - /* 验证注册的标识码是否有效 */ | ||
160 | - $data = RegData::validMobileCode($area, $mobile, $code); | ||
161 | - if (!isset($data['code']) || $data['code'] != 200) { | ||
162 | - $data['message'] = '验证码错误'; | ||
163 | - break; | ||
164 | - } | ||
165 | $effective_time = $this->getSession('effective_time'); | 159 | $effective_time = $this->getSession('effective_time'); |
166 | if($effective_time < time() || empty($effective_time)) | 160 | if($effective_time < time() || empty($effective_time)) |
167 | { | 161 | { |
168 | $data['message'] = '注册超时'; | 162 | $data['message'] = '注册超时'; |
169 | break; | 163 | break; |
170 | } | 164 | } |
165 | + /* 验证注册的标识码是否有效 */ | ||
166 | + $data = RegData::validMobileCode($area, $mobile, $code); | ||
167 | + if (!isset($data['code']) || $data['code'] != 200) { | ||
168 | + $data['message'] = '验证码错误'; | ||
169 | + break; | ||
170 | + } | ||
171 | /*手机注册*/ | 171 | /*手机注册*/ |
172 | $data = RegData::regMobile($area, $mobile, $password); | 172 | $data = RegData::regMobile($area, $mobile, $password); |
173 | if (!isset($data['code']) || $data['code'] != 200) { | 173 | if (!isset($data['code']) || $data['code'] != 200) { |
-
Please register or login to post a comment