正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -40,7 +40,8 @@ class Temp extends Command | @@ -40,7 +40,8 @@ class Temp extends Command | ||
| 40 | */ | 40 | */ |
| 41 | public function handle() | 41 | public function handle() |
| 42 | { | 42 | { |
| 43 | - $server_id = 14; | 43 | + $server_id = 15; |
| 44 | + $server_name = '美服1'; | ||
| 44 | 45 | ||
| 45 | $server_ip_model = new ServersIp(); | 46 | $server_ip_model = new ServersIp(); |
| 46 | 47 | ||
| @@ -72,7 +73,7 @@ class Temp extends Command | @@ -72,7 +73,7 @@ class Temp extends Command | ||
| 72 | } | 73 | } |
| 73 | $map = ['项目id', '名称', '域名', '解析IP']; | 74 | $map = ['项目id', '名称', '域名', '解析IP']; |
| 74 | if ($data) { | 75 | if ($data) { |
| 75 | - $table = new BatchExportService("美服2没有解析cname的项目"); | 76 | + $table = new BatchExportService($server_name . '没有解析cname的项目'); |
| 76 | $file = $table->head($map)->data($data)->save(); | 77 | $file = $table->head($map)->data($data)->save(); |
| 77 | if (!$file) { | 78 | if (!$file) { |
| 78 | $this->output('文件生成失败,请重试'); | 79 | $this->output('文件生成失败,请重试'); |
-
请 注册 或 登录 后发表评论