正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -35,7 +35,7 @@ class UpgradeProjectCount extends Command | @@ -35,7 +35,7 @@ class UpgradeProjectCount extends Command | ||
| 35 | protected $description = '升级项目统计'; | 35 | protected $description = '升级项目统计'; |
| 36 | 36 | ||
| 37 | public function handle(){ | 37 | public function handle(){ |
| 38 | - ProjectServer::useProject(439); | 38 | + ProjectServer::useProject(627); |
| 39 | $this->count(); | 39 | $this->count(); |
| 40 | 40 | ||
| 41 | DB::disconnect('custom_mysql'); | 41 | DB::disconnect('custom_mysql'); |
| @@ -60,8 +60,8 @@ class UpgradeProjectCount extends Command | @@ -60,8 +60,8 @@ class UpgradeProjectCount extends Command | ||
| 60 | $start = date('Y-m-01', strtotime($v['month'])); | 60 | $start = date('Y-m-01', strtotime($v['month'])); |
| 61 | // 获取当月结束时间 | 61 | // 获取当月结束时间 |
| 62 | $end = date('Y-m-t', strtotime($v['month'])); | 62 | $end = date('Y-m-t', strtotime($v['month'])); |
| 63 | - $arr['project_id'] = 439; | ||
| 64 | - $res = $this->inquiry('www.cnzyl.com',$v['month']); | 63 | + $arr['project_id'] = 627; |
| 64 | + $res = $this->inquiry('www.airuize.com',$v['month']); | ||
| 65 | $arr['month_total'] = 0; | 65 | $arr['month_total'] = 0; |
| 66 | if(isset($res['data']['count'])){ | 66 | if(isset($res['data']['count'])){ |
| 67 | $arr['month_total'] = $res['data']['count']; | 67 | $arr['month_total'] = $res['data']['count']; |
| @@ -94,7 +94,7 @@ class UpgradeProjectCount extends Command | @@ -94,7 +94,7 @@ class UpgradeProjectCount extends Command | ||
| 94 | */ | 94 | */ |
| 95 | public function pv_ip(&$arr,$start,$end){ | 95 | public function pv_ip(&$arr,$start,$end){ |
| 96 | $pv_ip = DB::table('gl_count') | 96 | $pv_ip = DB::table('gl_count') |
| 97 | - ->where(['project_id'=>439]) | 97 | + ->where(['project_id'=>627]) |
| 98 | ->where('date','>=',$start.' 00:00:00') | 98 | ->where('date','>=',$start.' 00:00:00') |
| 99 | ->where('date','<=',$end.' 23:59:59') | 99 | ->where('date','<=',$end.' 23:59:59') |
| 100 | ->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num'),DB::raw('SUM(inquiry_num) as inquiry_num')) | 100 | ->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num'),DB::raw('SUM(inquiry_num) as inquiry_num')) |
-
请 注册 或 登录 后发表评论