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