From bb6581592d0074ff7d719710042ef0c6c072b6ca Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Thu, 22 May 2025 14:17:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=89=88=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9branchId=20=E6=94=B9=E6=88=90=20branchName=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9room=5Fname=20=E6=94=B9=E7=94=A8HostName(=E7=B3=BB?= =?UTF-8?q?=E7=B5=B1=E8=B3=87=E8=A8=8A)=2020250522?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/heartbeat.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/heartbeat.ps1 b/scripts/heartbeat.ps1 index e4b6af1..6e76574 100644 --- a/scripts/heartbeat.ps1 +++ b/scripts/heartbeat.ps1 @@ -16,8 +16,7 @@ $config = Get-Content $configPath | ConvertFrom-Json # Config values $apiUrl = $config.apiUrl.TrimEnd('/') # 移除結尾的 / -$branchId = $config.branchId -$roomName = $config.roomName +$branchName = $config.branchName $email = $config.email $password = $config.password @@ -30,8 +29,8 @@ $ip = (Get-NetIPAddress -AddressFamily IPv4 | Where-Object { function Get-Token { $body = @{ - branch_id = $branchId - room_name = $roomName + branch_name = $branchName + room_name = $env:COMPUTERNAME room_ip = $ip email = $email password = $password