落地并存测服全端:智能体 Graph/路由、后台切 8180、主账与部署脚本齐备,便于线上重发与验收。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Check captcha flag on running ledger + try login without captcha
|
||||
$ErrorActionPreference = 'Continue'
|
||||
Write-Output '=== overlay jeecg.loginCaptcha ==='
|
||||
Select-String -Path 'E:\wwwroot\inquiry-new\config\application-inquiry.yml' -Pattern 'loginCaptcha|cas:' | ForEach-Object { $_.Line }
|
||||
Write-Output '=== process cmdline ==='
|
||||
Get-CimInstance Win32_Process -Filter "Name='java.exe'" | ForEach-Object {
|
||||
if ($_.CommandLine -like '*inquiry-new*') {
|
||||
$_.CommandLine.Substring(0, [Math]::Min(300, $_.CommandLine.Length))
|
||||
}
|
||||
}
|
||||
Write-Output '=== login attempt ==='
|
||||
$body = '{"username":"admin","password":"123456","captcha":"","checkKey":""}'
|
||||
try {
|
||||
$r = Invoke-WebRequest -Uri 'http://127.0.0.1:8180/jeecgboot/sys/login' -Method POST -Body $body -ContentType 'application/json;charset=UTF-8' -UseBasicParsing -TimeoutSec 15
|
||||
"status=$($r.StatusCode) body=$($r.Content.Substring(0,[Math]::Min(300,$r.Content.Length)))"
|
||||
} catch {
|
||||
$resp = $_.Exception.Response
|
||||
if ($resp) {
|
||||
$reader = New-Object System.IO.StreamReader($resp.GetResponseStream())
|
||||
$txt = $reader.ReadToEnd()
|
||||
"http_err status=$([int]$resp.StatusCode) body=$txt"
|
||||
} else {
|
||||
"err=$($_.Exception.Message)"
|
||||
}
|
||||
}
|
||||
Write-Output 'CAPTCHA_CHECK_DONE'
|
||||
Reference in New Issue
Block a user