增加在线聊天室的功能
This commit is contained in:
26
常用脚本/AI项目/启动全流程.ps1
Normal file
26
常用脚本/AI项目/启动全流程.ps1
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
#Write-Host "开始关闭 Clash"
|
||||
#
|
||||
## 关闭应用程序 clash
|
||||
#Stop-Process -Name "Clash For Windows" -Force
|
||||
#
|
||||
#
|
||||
#Write-Host "开始 启动 Clash"
|
||||
#Start-Sleep -Seconds 2
|
||||
#
|
||||
## 启动应用程序 "C:\SSS\ClashForWindows\Clash for Windows"
|
||||
#Start-Process -FilePath "C:\SSS\ClashForWindows\Clash for Windows\Clash for Windows.exe"
|
||||
#
|
||||
#Start-Sleep -Seconds 2
|
||||
|
||||
|
||||
Write-Host "开始 修改 Clash 的配置 !"
|
||||
|
||||
$uri = 'http://127.0.0.1:61889/proxies/:tc-bjc'
|
||||
$headers = @{
|
||||
'Authorization' = 'Bearer 5c090877-21bb-4006-a97c-0bd4bfbb9be9'
|
||||
}
|
||||
|
||||
$result = Invoke-RestMethod -Uri $uri -Method Put -Headers $headers
|
||||
|
||||
# 可以根据需要处理$result的响应
|
||||
Reference in New Issue
Block a user