Commit 98844dff authored by suntengda's avatar suntengda

update app-团餐活动列表已结束列表增加缓存

parent bc85e993
...@@ -219,7 +219,9 @@ class MarketingController extends Base ...@@ -219,7 +219,9 @@ class MarketingController extends Base
$marketingIdsEnd = array_keys($list['end']); $marketingIdsEnd = array_keys($list['end']);
$list = $this->_fillSkuAndOrderInfo($marketingIdsEnd,$list); $list = $this->_fillSkuAndOrderInfo($marketingIdsEnd,$list);
$redis->set($key,$list['end'],['ex'=>86400]);//已结束列表 缓存一天 $redis->set($key,json_encode($list['end']),['ex'=>86400]);//已结束列表 缓存一天
}else {
$list['end'] = json_decode($list['end'], true);
} }
}catch (Exception $e) { }catch (Exception $e) {
FileLog::error("获取团餐已结束列表异常", $e->getMessage(), '', 'suntengda@yidian-inc.com'); FileLog::error("获取团餐已结束列表异常", $e->getMessage(), '', 'suntengda@yidian-inc.com');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment