From ad2814973116c96a7c534a064922adbbfa2927fa Mon Sep 17 00:00:00 2001 From: chenxing Date: Thu, 15 Oct 2026 15:25:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(oapi):=20acasyllabu/workplan=20targets=20?= =?UTF-8?q?=E5=88=87=E5=BC=80=E6=94=BE=E7=BD=91=E5=85=B3=E2=80=94=E2=80=94?= =?UTF-8?q?base-host=20=E6=8C=87=E5=90=91=20open-gateway-service:10013?= =?UTF-8?q?=EF=BC=8820261015=20=E5=88=87=E9=97=A8=E6=94=B6=E5=8F=A3?= =?UTF-8?q?=EF=BC=8Coapi=20=E7=BB=9F=E4=B8=80=E7=BB=8F=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E9=AA=8C=E7=AD=BE/=E8=BD=AC=E5=8F=91/=E5=8F=B0=E8=B4=A6?= =?UTF-8?q?=EF=BC=89=EF=BC=9B=E7=AD=BE=E5=90=8D=E5=8F=A3=E5=BE=84=E4=B8=8D?= =?UTF-8?q?=E5=8F=98=EF=BC=88=E7=BD=91=E5=85=B3=20canonical=20=E4=B8=8E=20?= =?UTF-8?q?starter=20=E9=80=90=E5=AD=97=E8=8A=82=E4=B8=80=E8=87=B4?= =?UTF-8?q?=EF=BC=89=EF=BC=9Bworkplan=20=E7=9C=9F=E5=AE=9E=20ctx=3D/work-w?= =?UTF-8?q?eek-plan=20=E5=B7=B2=E7=BD=91=E5=85=B3=E7=AD=BE=E5=90=8D=20200?= =?UTF-8?q?=20=E5=AE=9E=E6=B5=8B=E5=B9=B6=E7=99=BB=E8=AE=B0=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=A1=A8=EF=BC=88targets=2018/routes=2025=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 1f1633b..7d74f37 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -74,10 +74,20 @@ yh: # 客户端签名按该 ctx 剥离(待签 target = /oapi/timetable/Get?...,不含 /aca-syllabu)。 # ⚠️ 真实 ctx = /aca-syllabu(带横线,20261013 生产实测 401 定位);手册写的 /acasyllabu 有误。 # 本地联调:AcaSyllabu 在 8109 且无 ctx ⇒ 覆盖 base-host: http://localhost:8109、base-path 留空。 + # base-host 指 open-gateway(开放网关,容器网地址):20261015 切门收口,oapi 统一经网关 + # 验签/转发/台账;签名口径不变(网关 canonical 与 starter 逐字节一致)。base-path 即 + # 网关 target 段(= 目标 ctx)。 targets: acasyllabu: - base-host: http://base.yunhaixingtong.com + base-host: http://open-gateway-service:10013 base-path: /aca-syllabu + # workplan:一周安排 oapi(小组件 weekplan 取数)。base-path 即目标 ctx, + # 客户端签名按该 ctx 剥离(待签 target = /oapi/workplan/Get?...,不含 /work-week-plan)。 + # 真实 ctx = /work-week-plan(20261015 网关签名 200 实测,网关注册表已登记该 target)。 + # 本地联调:WorkWeekPlan 在 8110 且无 ctx ⇒ 覆盖 base-host: http://localhost:8110、base-path 留空。 + workplan: + base-host: http://open-gateway-service:10013 + base-path: /work-week-plan # env-config 前端运行时配置(免登录 GET /api/env-config?target=front,数据源见 # config/PropertyEnvConfigSource:聚合 starter 自动装配,有 bean 即注册端点)。 # 本地无需配值(前端 dev 走 .env.dev);线上值经环境变量 YH_ENV_CONFIG_SOURCE_FRONT