|
|
|
@ -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();
|
|
|
|
|