|
@@ -2,6 +2,7 @@ |
|
@@ -2,6 +2,7 @@ |
2
|
|
2
|
|
3
|
use Action\AbstractAction;
|
3
|
use Action\AbstractAction;
|
4
|
use LibModels\Wap\Product\SearchData;
|
4
|
use LibModels\Wap\Product\SearchData;
|
|
|
5
|
+use LibModels\Wap\Home\UserData;
|
5
|
use Plugin\DataProcess\ListProcess;
|
6
|
use Plugin\DataProcess\ListProcess;
|
6
|
use Plugin\Helpers;
|
7
|
use Plugin\Helpers;
|
7
|
|
8
|
|
|
@@ -42,6 +43,7 @@ class SearchController extends AbstractAction |
|
@@ -42,6 +43,7 @@ class SearchController extends AbstractAction |
42
|
*/
|
43
|
*/
|
43
|
public function listAction()
|
44
|
public function listAction()
|
44
|
{
|
45
|
{
|
|
|
46
|
+ $uid = $this->getUid() || $this->get('uid');
|
45
|
$isApp = $this->isApp();
|
47
|
$isApp = $this->isApp();
|
46
|
// 过滤请求参数
|
48
|
// 过滤请求参数
|
47
|
$condition = filter_input_array(INPUT_GET, array(
|
49
|
$condition = filter_input_array(INPUT_GET, array(
|
|
@@ -228,10 +230,21 @@ class SearchController extends AbstractAction |
|
@@ -228,10 +230,21 @@ class SearchController extends AbstractAction |
228
|
|
230
|
|
229
|
// 搜索列表将最新改成默认的标识
|
231
|
// 搜索列表将最新改成默认的标识
|
230
|
$data['isSearch'] = true;
|
232
|
$data['isSearch'] = true;
|
|
|
233
|
+
|
|
|
234
|
+
|
231
|
if (isset($condition['students'])) {
|
235
|
if (isset($condition['students'])) {
|
|
|
236
|
+ // 获取用户信息判断是否为学生
|
|
|
237
|
+
|
232
|
$data['students'] = Helpers::url('/activity/student');
|
238
|
$data['students'] = Helpers::url('/activity/student');
|
|
|
239
|
+ if ($uid) {
|
|
|
240
|
+ $userInfo = UserData::userData($uid);
|
|
|
241
|
+ if ($userInfo['code'] === 200 && $userInfo['data']['vip_info']['is_student'] === 1) {
|
|
|
242
|
+ $data['students'] = '';
|
|
|
243
|
+ }
|
|
|
244
|
+ }
|
233
|
$data['showDownloadApp'] = false;
|
245
|
$data['showDownloadApp'] = false;
|
234
|
}
|
246
|
}
|
|
|
247
|
+
|
235
|
$this->_view->display('list', $data);
|
248
|
$this->_view->display('list', $data);
|
236
|
}
|
249
|
}
|
237
|
|
250
|
|