|
|
|
@ -185,7 +185,11 @@ class StatisticsCountSetController extends Controller {
|
|
|
|
|
$value['create_time']=$this->nowdata;
|
|
|
|
|
$value['active_user_list'] = @json_encode(array_map("intFun",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'];
|
|
|
|
|
if($value['promote_id'] == 0){
|
|
|
|
|
$value['promote_account'] = "官方渠道";
|
|
|
|
|
}else{
|
|
|
|
|
$value['promote_account'] = $this->PromoteModel->field("account")->where("id = {$value['promote_id']}")->find()['account'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$tempdbres = $this->PromoteCountModel->add($value);
|
|
|
|
|
if($tempdbres === false){
|
|
|
|
|