正在显示
1 个修改的文件
包含
6 行增加
和
4 行删除
| @@ -24,6 +24,7 @@ use App\Models\Project\MinorLanguages; | @@ -24,6 +24,7 @@ use App\Models\Project\MinorLanguages; | ||
| 24 | use App\Models\Project\Project; | 24 | use App\Models\Project\Project; |
| 25 | use App\Services\AmazonS3Service; | 25 | use App\Services\AmazonS3Service; |
| 26 | use App\Services\ProjectServer; | 26 | use App\Services\ProjectServer; |
| 27 | +use App\Utils\EncryptUtils; | ||
| 27 | use Illuminate\Console\Command; | 28 | use Illuminate\Console\Command; |
| 28 | use Illuminate\Support\Facades\DB; | 29 | use Illuminate\Support\Facades\DB; |
| 29 | use Illuminate\Support\Facades\Schema; | 30 | use Illuminate\Support\Facades\Schema; |
| @@ -47,16 +48,17 @@ class Demo extends Command | @@ -47,16 +48,17 @@ class Demo extends Command | ||
| 47 | 48 | ||
| 48 | public function handle(){ | 49 | public function handle(){ |
| 49 | $serverConfigModel = new ServerConfig(); | 50 | $serverConfigModel = new ServerConfig(); |
| 50 | - $lists = $serverConfigModel->list(['type'=>1]); | 51 | + $lists = $serverConfigModel->list(['type'=>1],'id',['*'],'asc'); |
| 51 | foreach ($lists as $v){ | 52 | foreach ($lists as $v){ |
| 52 | echo date('Y-m-d H:i:s') . 'title数据:'.$v['title'] . PHP_EOL; | 53 | echo date('Y-m-d H:i:s') . 'title数据:'.$v['title'] . PHP_EOL; |
| 54 | + $encrypt = new EncryptUtils(); | ||
| 53 | $param = [ | 55 | $param = [ |
| 54 | 'server_name'=>$v['title'], | 56 | 'server_name'=>$v['title'], |
| 55 | 'being_number'=>$v['count'], | 57 | 'being_number'=>$v['count'], |
| 56 | 'ip_total'=>1, | 58 | 'ip_total'=>1, |
| 57 | - 'account'=>$v['user'], | ||
| 58 | - 'password'=>$v['password'], | ||
| 59 | - 'port'=>$v['port'], | 59 | + 'account'=>$encrypt->lock_url($v['user']), |
| 60 | + 'password'=>$encrypt->lock_url($v['password']), | ||
| 61 | + 'port'=>$encrypt->lock_url($v['port']), | ||
| 60 | 'bt_account'=>$v['bt_account'], | 62 | 'bt_account'=>$v['bt_account'], |
| 61 | 'bt_password'=>$v['bt_password'], | 63 | 'bt_password'=>$v['bt_password'], |
| 62 | 'service_type'=>$v['service_type'], | 64 | 'service_type'=>$v['service_type'], |
-
请 注册 或 登录 后发表评论