...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
use Action\AbstractAction;
|
|
|
use LibModels\Wap\Product\SearchData;
|
|
|
use LibModels\Wap\Home\UserData;
|
|
|
use Plugin\DataProcess\ListProcess;
|
|
|
use Plugin\Helpers;
|
|
|
|
...
|
...
|
@@ -42,6 +43,7 @@ class SearchController extends AbstractAction |
|
|
*/
|
|
|
public function listAction()
|
|
|
{
|
|
|
$uid = $this->getUid() || $this->get('uid');
|
|
|
$isApp = $this->isApp();
|
|
|
// 过滤请求参数
|
|
|
$condition = filter_input_array(INPUT_GET, array(
|
...
|
...
|
@@ -228,10 +230,21 @@ class SearchController extends AbstractAction |
|
|
|
|
|
// 搜索列表将最新改成默认的标识
|
|
|
$data['isSearch'] = true;
|
|
|
|
|
|
|
|
|
if (isset($condition['students'])) {
|
|
|
// 获取用户信息判断是否为学生
|
|
|
|
|
|
$data['students'] = Helpers::url('/activity/student');
|
|
|
if ($uid) {
|
|
|
$userInfo = UserData::userData($uid);
|
|
|
if ($userInfo['code'] === 200 && $userInfo['data']['vip_info']['is_student'] === 1) {
|
|
|
$data['students'] = '';
|
|
|
}
|
|
|
}
|
|
|
$data['showDownloadApp'] = false;
|
|
|
}
|
|
|
|
|
|
$this->_view->display('list', $data);
|
|
|
}
|
|
|
|
...
|
...
|
|