From 307f536c18c11331e18e94292e5296ce2594fccf Mon Sep 17 00:00:00 2001
From: zhizhijie <zhizhijie@users.noreply.gitee.com>
Date: 星期日, 27 九月 2026 16:14:29 +0800
Subject: [PATCH] docs(交接): 补同名列反例对照——中口径明细!AB=2025年4月(被700+同页/34跨页引用)不可清,避免与中口径客运量!AB(2024年1~2月累计草稿列)混淆
---
start-dev.ps1 | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/start-dev.ps1 b/start-dev.ps1
index 5dcf2ba..de2dca6 100644
--- a/start-dev.ps1
+++ b/start-dev.ps1
@@ -12,6 +12,19 @@
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
$webDir = Join-Path $root 'traffic-audit-web'
+# ---------- 瀵嗛挜锛氫粠 Windows 鐢ㄦ埛鐜鍙橀噺琛ラ綈锛堢湡瀹炲�间笉钀芥枃浠讹級----------
+# 鑻ュ綋鍓� shell 鏄棫杩涚▼銆佹嬁涓嶅埌鏂拌鐨勫彉閲忥紝鍒欎粠娉ㄥ唽琛� HKCU\Environment 璇讳竴娆★紝
+# 渚涘悗绔瓙杩涚▼缁ф壙锛堥伩鍏�"瀵嗛挜涓嶅湪浠讳綍鏂囦欢閲屻�佸張璇讳笉鍒扮幆澧冨彉閲�"鐨勭┖妗o級銆�
+foreach ($name in @('TRAFFIC_DB_PASSWORD', 'DEEPSEEK_API_KEY', 'TRAFFIC_DB_URL', 'TRAFFIC_DB_USER', 'TRAFFIC_JWT_SECRET')) {
+ if (-not [Environment]::GetEnvironmentVariable($name, 'Process')) {
+ $val = [Environment]::GetEnvironmentVariable($name, 'User')
+ if ($val) {
+ [Environment]::SetEnvironmentVariable($name, $val, 'Process')
+ Write-Host "宸蹭粠鐢ㄦ埛鐜鍙橀噺杞藉叆 $name"
+ }
+ }
+}
+
function Test-PortListening($port) {
try {
$c = Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction Stop
--
Gitblit v1.9.1