|
...
|
...
|
@@ -30,6 +30,7 @@ class MonthCountLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function getCountLists($map,$order = 'created_at',$filed = ['*']){
|
|
|
|
$map['project_id'] = $this->user['project_id'];
|
|
|
|
$new = $this->currentMonthCount();
|
|
|
|
$lists = $this->model->list($map,$order,$filed,'desc',10);
|
|
|
|
if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){
|
|
|
|
foreach ($lists as $k => $v){
|
|
...
|
...
|
@@ -44,10 +45,11 @@ class MonthCountLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
$v['source_country'] = json_encode(array_values($source_country));
|
|
|
|
$v['month_total'] = $new['month_total'];
|
|
|
|
$lists[$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$lists['new'] = $this->currentMonthCount();
|
|
|
|
$lists['new'] = $new;
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|