正在显示
3 个修改的文件
包含
0 行增加
和
9 行删除
| @@ -479,9 +479,6 @@ class WebTrafficRussia extends Command | @@ -479,9 +479,6 @@ class WebTrafficRussia extends Command | ||
| 479 | } | 479 | } |
| 480 | $ip_area = $this->get_rand($project_country); | 480 | $ip_area = $this->get_rand($project_country); |
| 481 | $res = DB::table('gl_xunpan_ipdata')->where('ip_area', $ip_area)->inRandomOrder()->first(); | 481 | $res = DB::table('gl_xunpan_ipdata')->where('ip_area', $ip_area)->inRandomOrder()->first(); |
| 482 | - if(!$res){ | ||
| 483 | - continue; | ||
| 484 | - } | ||
| 485 | $res = (array)$res ?: []; | 482 | $res = (array)$res ?: []; |
| 486 | $res['diff'] = $time_zones[$res['ip_area']]; | 483 | $res['diff'] = $time_zones[$res['ip_area']]; |
| 487 | $data[] = $res; | 484 | $data[] = $res; |
| @@ -470,9 +470,6 @@ class WebTrafficRussiaSpecial extends Command | @@ -470,9 +470,6 @@ class WebTrafficRussiaSpecial extends Command | ||
| 470 | } | 470 | } |
| 471 | $ip_area = $this->get_rand($project_country); | 471 | $ip_area = $this->get_rand($project_country); |
| 472 | $res = DB::table('gl_xunpan_ipdata')->where('ip_area', $ip_area)->inRandomOrder()->first(); | 472 | $res = DB::table('gl_xunpan_ipdata')->where('ip_area', $ip_area)->inRandomOrder()->first(); |
| 473 | - if(!$res){ | ||
| 474 | - continue; | ||
| 475 | - } | ||
| 476 | $res = (array)$res ?: []; | 473 | $res = (array)$res ?: []; |
| 477 | $res['diff'] = $time_zones[$res['ip_area']]; | 474 | $res['diff'] = $time_zones[$res['ip_area']]; |
| 478 | $data[] = $res; | 475 | $data[] = $res; |
| @@ -420,9 +420,6 @@ class WebTrafficSpecial extends Command | @@ -420,9 +420,6 @@ class WebTrafficSpecial extends Command | ||
| 420 | $query->whereNotIn('ip_area', $main_countries); | 420 | $query->whereNotIn('ip_area', $main_countries); |
| 421 | } | 421 | } |
| 422 | })->inRandomOrder()->first(); | 422 | })->inRandomOrder()->first(); |
| 423 | - if(!$ipdata){ | ||
| 424 | - continue; | ||
| 425 | - } | ||
| 426 | $ipdata = (array)$ipdata ?: []; | 423 | $ipdata = (array)$ipdata ?: []; |
| 427 | $ipdata['diff'] = $time_zones[$ipdata['ip_area']]; | 424 | $ipdata['diff'] = $time_zones[$ipdata['ip_area']]; |
| 428 | $data[] = $ipdata; | 425 | $data[] = $ipdata; |
-
请 注册 或 登录 后发表评论