作者 lyh

gx

@@ -50,6 +50,7 @@ class UpgradeProjectCount extends Command @@ -50,6 +50,7 @@ class UpgradeProjectCount extends Command
50 if(!empty($list)){ 50 if(!empty($list)){
51 $arr = []; 51 $arr = [];
52 foreach ($list as $k=>$v){ 52 foreach ($list as $k=>$v){
  53 + echo date('Y-m-d H:i:s') . '时间:'.$v['updated_date'] . PHP_EOL;
53 $this->country20Top($v['updated_date']); 54 $this->country20Top($v['updated_date']);
54 // $count = new Count(); 55 // $count = new Count();
55 // $arr['project_id'] = 439; 56 // $arr['project_id'] = 439;
@@ -74,8 +75,8 @@ class UpgradeProjectCount extends Command @@ -74,8 +75,8 @@ class UpgradeProjectCount extends Command
74 ->whereDate('updated_date', $day)->where('inquiry_num',1) 75 ->whereDate('updated_date', $day)->where('inquiry_num',1)
75 ->select('country', DB::raw('COUNT(*) as count')) 76 ->select('country', DB::raw('COUNT(*) as count'))
76 ->groupBy('country') 77 ->groupBy('country')
77 - ->orderByDesc('count')->limit(20)->get();  
78 - echo date('Y-m-d H:i:s') . '时间:'.json_encode($country) . PHP_EOL; 78 + ->orderByDesc('count')->limit(20)->get()->toArray();
  79 + echo date('Y-m-d H:i:s') . 'shuju:'.json_encode($country) . PHP_EOL;
79 } 80 }
80 81
81 /** 82 /**