|
|
@@ -48,12 +48,12 @@ class JiamengController extends HomeBaseController
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function lists()
|
|
|
- {
|
|
|
- $param = $this->request->param();
|
|
|
+ {
|
|
|
+ $param = $this->request->param();
|
|
|
$cacheKey = 'cache:jiameng_pages:list:' . md5(json_encode($param)).'_'.intval(cmf_is_mobile());
|
|
|
$pageHtml = RedisService::get($cacheKey);
|
|
|
if ($pageHtml) {
|
|
|
- return $pageHtml;
|
|
|
+ return $pageHtml;
|
|
|
}
|
|
|
|
|
|
//var_dump($param);die();
|
|
|
@@ -67,7 +67,6 @@ class JiamengController extends HomeBaseController
|
|
|
'pcid' => isset($param['pcid']) ? intval($param['pcid']) : 0,
|
|
|
'lv' => isset($param['lv']) ? intval($param['lv']) : '11111',
|
|
|
'aid' => isset($param['aid']) ? intval($param['aid']) : 0,
|
|
|
- // 'aid' => isset($param['aid']) ? $param['aid'] : '不限',
|
|
|
];
|
|
|
$sonid = 0;
|
|
|
if ($enname || $pcid) {
|
|
|
@@ -103,7 +102,7 @@ class JiamengController extends HomeBaseController
|
|
|
}
|
|
|
|
|
|
$param['pageType'] = 1;
|
|
|
-
|
|
|
+
|
|
|
$result = JiamengService::getList($param);
|
|
|
$page = $result->render();
|
|
|
|
|
|
@@ -139,8 +138,7 @@ class JiamengController extends HomeBaseController
|
|
|
|
|
|
//通过传入的参数获取中文
|
|
|
$this->assign('dtite', $page);
|
|
|
-
|
|
|
-
|
|
|
+//var_dump($lists);die;
|
|
|
// var_dump($param);die();
|
|
|
$this->assign('page', $page);
|
|
|
$this->assign('data', $result);
|