Showing
1 changed file
with
9 additions
and
6 deletions
@@ -233,8 +233,8 @@ class SearchController extends AbstractAction | @@ -233,8 +233,8 @@ class SearchController extends AbstractAction | ||
233 | 233 | ||
234 | 234 | ||
235 | if (isset($condition['students'])) { | 235 | if (isset($condition['students'])) { |
236 | - // 获取用户信息判断是否为学生 | ||
237 | 236 | ||
237 | + // 获取用户信息判断是否为学生 | ||
238 | $data['students'] = Helpers::url('/activity/student/register'); | 238 | $data['students'] = Helpers::url('/activity/student/register'); |
239 | if ($uid) { | 239 | if ($uid) { |
240 | $userInfo = UserData::userData($uid); | 240 | $userInfo = UserData::userData($uid); |
@@ -243,12 +243,15 @@ class SearchController extends AbstractAction | @@ -243,12 +243,15 @@ class SearchController extends AbstractAction | ||
243 | } | 243 | } |
244 | } | 244 | } |
245 | $data['showDownloadApp'] = false; | 245 | $data['showDownloadApp'] = false; |
246 | + if ($isApp) { | ||
247 | + //判断app版本是否低于4.9.1,用于显示下方的提示 | ||
248 | + $appVersion = str_replace('.', '', $this->get('app_version')); | ||
249 | + if (intval(substr($appVersion, 0, 3)) < 491) { | ||
250 | + $data['oldApp'] = true; | ||
251 | + } | ||
252 | + } | ||
246 | } | 253 | } |
247 | - //判断app版本是否低于4.9.1,用于显示下方的提示 | ||
248 | - $appVersion = str_replace('.', '', $this->get('app_version')); | ||
249 | - if (intval(substr($appVersion, 0, 3)) < 491) { | ||
250 | - $data['oldApp'] = true; | ||
251 | - } | 254 | + |
252 | 255 | ||
253 | $this->_view->display('list', $data); | 256 | $this->_view->display('list', $data); |
254 | } | 257 | } |
-
Please register or login to post a comment