|
|
@@ -50,7 +50,7 @@ class JiamengController extends HomeBaseController
|
|
|
public function lists()
|
|
|
{
|
|
|
$param = $this->request->param();
|
|
|
- $cacheKey = 'cache:jiameng_pages:list:' . md5(json_encode($param));
|
|
|
+ $cacheKey = 'cache:jiameng_pages:list:' . md5(json_encode($param)).'_'.intval(cmf_is_mobile());
|
|
|
$pageHtml = RedisService::get($cacheKey);
|
|
|
if ($pageHtml) {
|
|
|
return $pageHtml;
|
|
|
@@ -166,7 +166,7 @@ class JiamengController extends HomeBaseController
|
|
|
public function search()
|
|
|
{
|
|
|
$param = $this->request->param();
|
|
|
- $cacheKey = 'cache:jiameng_pages:search:' . md5(json_encode($param));
|
|
|
+ $cacheKey = 'cache:jiameng_pages:search:' . md5(json_encode($param)).'_'.intval(cmf_is_mobile());
|
|
|
$pageHtml = RedisService::get($cacheKey);
|
|
|
if ($pageHtml) {
|
|
|
return $pageHtml;
|
|
|
@@ -272,7 +272,7 @@ class JiamengController extends HomeBaseController
|
|
|
{
|
|
|
$param = $this->request->param();
|
|
|
isset($param['id']) or $this->error('需要id');
|
|
|
- $cacheKey = 'cache:jiameng_pages:show_' . $param['id'];
|
|
|
+ $cacheKey = 'cache:jiameng_pages:show_' . $param['id'].'_'.intval(cmf_is_mobile());
|
|
|
$pageHtml = RedisService::get($cacheKey);
|
|
|
//更新点击次数
|
|
|
Db::name('jiameng')->where('id', $param['id'])->setInc('hits', 1);
|