优化总览脚本

master
chenzhi 5 years ago
parent c6f2794a3b
commit a877b475f5

@ -185,7 +185,11 @@ class StatisticsCountSetController extends Controller {
$value['create_time']=$this->nowdata; $value['create_time']=$this->nowdata;
$value['active_user_list'] = @json_encode(array_map("intFun",explode(",",$value['active_user_list']))); $value['active_user_list'] = @json_encode(array_map("intFun",explode(",",$value['active_user_list'])));
if(empty($value['promote_account']) && $value['promote_id']){ 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); $tempdbres = $this->PromoteCountModel->add($value);
if($tempdbres === false){ if($tempdbres === false){

Loading…
Cancel
Save