正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -42,7 +42,7 @@ class MonthCountLogic extends BaseLogic | @@ -42,7 +42,7 @@ class MonthCountLogic extends BaseLogic | ||
| 42 | unset($source_country[$k1]); | 42 | unset($source_country[$k1]); |
| 43 | } | 43 | } |
| 44 | } | 44 | } |
| 45 | - $v['source_country'] = array_values($source_country); | 45 | + $v['source_country'] = json_encode(array_values($source_country)); |
| 46 | $lists[$k] = $v; | 46 | $lists[$k] = $v; |
| 47 | } | 47 | } |
| 48 | } | 48 | } |
| @@ -158,9 +158,9 @@ class MonthCountLogic extends BaseLogic | @@ -158,9 +158,9 @@ class MonthCountLogic extends BaseLogic | ||
| 158 | $query = DB::connection('custom_mysql')->table('gl_customer_visit') | 158 | $query = DB::connection('custom_mysql')->table('gl_customer_visit') |
| 159 | ->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) | 159 | ->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) |
| 160 | ->groupBy('country'); | 160 | ->groupBy('country'); |
| 161 | - if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){ | ||
| 162 | - $query->where('country','<>','中国'); | ||
| 163 | - } | 161 | +// if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){ |
| 162 | +// $query->where('country','<>','中国'); | ||
| 163 | +// } | ||
| 164 | $source_country = $query->whereBetween('updated_date', [$startTime,$endTime]) | 164 | $source_country = $query->whereBetween('updated_date', [$startTime,$endTime]) |
| 165 | ->orderBy('ip','desc')->limit(15)->get()->toArray(); | 165 | ->orderBy('ip','desc')->limit(15)->get()->toArray(); |
| 166 | $arr['source_country'] = $source_country; | 166 | $arr['source_country'] = $source_country; |
-
请 注册 或 登录 后发表评论