|
|
@@ -114,8 +114,12 @@ class IndexController extends Backend
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 数据分析统计
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
public function statistics(){
|
|
|
- $cacheKey = "caches:statis:counts";
|
|
|
+ $cacheKey = "caches:statistics:counts";
|
|
|
$datas = RedisService::get($cacheKey);
|
|
|
$datas = $datas? json_decode($datas, true) : [];
|
|
|
if($datas){
|
|
|
@@ -152,7 +156,7 @@ class IndexController extends Backend
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function statisTable(){
|
|
|
+ public function statisticsTable(){
|
|
|
$type = request()->get('type', 'trade');
|
|
|
$dateType = request()->get('dateType', 0);
|
|
|
$datas = [];
|
|
|
@@ -182,7 +186,7 @@ class IndexController extends Backend
|
|
|
RedisService::keyDel("caches:index:*");
|
|
|
RedisService::keyDel("caches:articles:*");
|
|
|
RedisService::keyDel("caches:qrcodes:*");
|
|
|
- RedisService::keyDel("caches:statis:*");
|
|
|
+ RedisService::keyDel("caches:statistics:*");
|
|
|
return message(MESSAGE_OK, true);
|
|
|
}
|
|
|
}
|