正在显示
1 个修改的文件
包含
3 行增加
和
19 行删除
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | namespace App\Models\AutoPull; | 3 | namespace App\Models\AutoPull; |
| 4 | 4 | ||
| 5 | use App\Models\Base; | 5 | use App\Models\Base; |
| 6 | +use App\Models\Devops\ServerConfig; | ||
| 7 | +use App\Models\Devops\Servers; | ||
| 6 | 8 | ||
| 7 | class AutoPullNotify extends Base | 9 | class AutoPullNotify extends Base |
| 8 | { | 10 | { |
| @@ -10,25 +12,7 @@ class AutoPullNotify extends Base | @@ -10,25 +12,7 @@ class AutoPullNotify extends Base | ||
| 10 | 12 | ||
| 11 | public static function serversMap() | 13 | public static function serversMap() |
| 12 | { | 14 | { |
| 13 | - return [ | ||
| 14 | - 1 => '硅谷云服务器', | ||
| 15 | - 25 => '硅谷建站服务器02', | ||
| 16 | - 15 => '硅谷IDC服务器01', | ||
| 17 | - 14 => '硅谷IDC服务器02', | ||
| 18 | - 21 => '硅谷IDC服务器03', | ||
| 19 | - 2 => '俄罗斯服务器', | ||
| 20 | - 12 => '俄罗斯IDC服务器01', | ||
| 21 | - 4 => '阿里云深圳服务器', | ||
| 22 | - 5 => '日本服务器', | ||
| 23 | - 8 => '香港服务器', | ||
| 24 | - 17 => '解析IP专用服务器', | ||
| 25 | - 22 => '白帽专属服务器01', | ||
| 26 | - 24 => '白帽专属服务器02', | ||
| 27 | - 23 => '西班牙服务器', | ||
| 28 | - 6 => '自建站服务器群', | ||
| 29 | - 27 => '硅谷建站服务器01', | ||
| 30 | - 29 => '硅谷IDC服务器04', | ||
| 31 | - ]; | 15 | + return Servers::where('status', 0)->where('id', '!=', ServerConfig::SELF_TEST_ID)->orderBy('sort', 'desc')->pluck('server_name', 'id')->toArray(); |
| 32 | } | 16 | } |
| 33 | 17 | ||
| 34 | public static function processMap() | 18 | public static function processMap() |
-
请 注册 或 登录 后发表评论