From 1d4c1accde9514da325427860dae29748c1de1f9 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Thu, 28 Nov 2019 14:12:16 +0800 Subject: [PATCH] 123 --- .../Admin/Controller/StatisticsCountSetController.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/StatisticsCountSetController.class.php b/Application/Admin/Controller/StatisticsCountSetController.class.php index 0381ce512..0af3eecb4 100644 --- a/Application/Admin/Controller/StatisticsCountSetController.class.php +++ b/Application/Admin/Controller/StatisticsCountSetController.class.php @@ -6,7 +6,6 @@ use Think\Controller; /** * 后台总览聚合 * @author cz - * 与group_concat最大字符数102400。后期考虑放弃 */ class StatisticsCountSetController extends Controller { public $beginTime; @@ -178,7 +177,7 @@ class StatisticsCountSetController extends Controller { foreach ($this->adddata as $key => $value) { $value['date']=$this->beginTime; $value['create_time']=$this->nowdata; - $value['active_user_list'] = @serialize(explode(",",$value['active_user_list'])); + $value['active_user_list'] = @json_encode(explode(",",$value['active_user_list'])); if(empty($value['promote_account']) && $value['promote_id']){ $value['promote_account'] = $this->PromoteModel->field("account")->where("id = {$value['promote_id']}")->find()['account']; } @@ -255,7 +254,7 @@ class StatisticsCountSetController extends Controller { foreach ($this->adddata as $key => $value) { $value['date']=$this->beginTime; $value['create_time']=$this->nowdata; - $value['active_user_list'] = @serialize(explode(",",$value['active_user_list'])); + $value['active_user_list'] = @json_encode(explode(",",$value['active_user_list'])); $tempdbres = $this->GameCountModel->add($value); if($tempdbres === false){ $this->model->rollback();