正在显示
1 个修改的文件
包含
4 行增加
和
5 行删除
| @@ -6,7 +6,6 @@ use App\Helper\Common; | @@ -6,7 +6,6 @@ use App\Helper\Common; | ||
| 6 | use App\Helper\FormGlobalsoApi; | 6 | use App\Helper\FormGlobalsoApi; |
| 7 | use App\Models\CustomerVisit\CustomerVisitItem; | 7 | use App\Models\CustomerVisit\CustomerVisitItem; |
| 8 | use App\Models\Project\DeployBuild; | 8 | use App\Models\Project\DeployBuild; |
| 9 | -use App\Models\Project\DeployOptimize; | ||
| 10 | use Carbon\Carbon; | 9 | use Carbon\Carbon; |
| 11 | use Illuminate\Console\Command; | 10 | use Illuminate\Console\Command; |
| 12 | use Illuminate\Support\Facades\DB; | 11 | use Illuminate\Support\Facades\DB; |
| @@ -36,15 +35,15 @@ class Yesterday extends Command | @@ -36,15 +35,15 @@ class Yesterday extends Command | ||
| 36 | */ | 35 | */ |
| 37 | public function handle() | 36 | public function handle() |
| 38 | { | 37 | { |
| 39 | - $deployModel = new DeployOptimize(); | 38 | + $deployModel = new DeployBuild(); |
| 40 | $list = $deployModel->list(); | 39 | $list = $deployModel->list(); |
| 41 | $data = []; | 40 | $data = []; |
| 42 | $yesterday = Carbon::yesterday()->toDateString(); | 41 | $yesterday = Carbon::yesterday()->toDateString(); |
| 43 | foreach ($list as $v){ | 42 | foreach ($list as $v){ |
| 44 | $arr = []; | 43 | $arr = []; |
| 45 | - $arr['pv_num'] = DB::table('gl_customer_visit_item')->whereDate('updated_date', $yesterday)->where('domain',$v['domain'])->count(); | ||
| 46 | - $arr['ip_num'] = DB::table('gl_customer_visit')->whereDate('updated_date', $yesterday)->where('domain',$v['domain'])->count(); | ||
| 47 | - $inquiry_list = (new FormGlobalsoApi())->getInquiryList($v['domain']); | 44 | + $arr['pv_num'] = DB::table('gl_customer_visit_item')->whereDate('updated_date', $yesterday)->where('domain',$v['test_domain'])->count(); |
| 45 | + $arr['ip_num'] = DB::table('gl_customer_visit')->whereDate('updated_date', $yesterday)->where('domain',$v['test_domain'])->count(); | ||
| 46 | + $inquiry_list = (new FormGlobalsoApi())->getInquiryList($v['test_domain']); | ||
| 48 | if($inquiry_list['status'] == self::STATUS_ERROR){ | 47 | if($inquiry_list['status'] == self::STATUS_ERROR){ |
| 49 | $arr['inquiry_num'] = 0; | 48 | $arr['inquiry_num'] = 0; |
| 50 | }else{ | 49 | }else{ |
-
请 注册 或 登录 后发表评论