docs: confirm shopee jwt config source

This commit is contained in:
曾志威
2026-06-04 15:53:40 +08:00
parent 66c00d3dde
commit 9792a99db2
@@ -67,8 +67,8 @@ Do not implement inbound module interfaces in this plan. Include all concrete in
- Validate Shopee inbound requests, forward to WES, build Shopee outbound URLs, set headers, call Shopee Automation Vendor APIs, normalize responses.
- Create or modify: `src/main/groovy/com/ittx/edi/erp/controller/ShopeeAutomationController.groovy`
- External endpoints called by Shopee plus internal endpoints consumed by `wes-loghub` for wave-number request and wave binding.
- Modify: `src/main/resources/application-dev.yml` and `src/main/resources/application-k8s.yml`.
- Add Shopee account, secret, host template, environment, country id, and timeout configuration.
- Modify: `src/main/resources/application-zzw.yml`.
- Read Shopee JWT/account/host settings from `customerMap.shopee`; do not introduce a second config path in `application-dev.yml` or `application-k8s.yml` for this phase.
## Interface Inventory
@@ -527,7 +527,7 @@ cd C:\work\gitlab\shopee\wes-loghub
**Files:**
- Create: `C:\work\gitlab\shopee\edi-shopee\src\main\groovy\com\ittx\edi\erp\service\ShopeeJwtService.groovy`
- Modify config files under `C:\work\gitlab\shopee\edi-shopee\src\main\resources\`
- Modify: `C:\work\gitlab\shopee\edi-shopee\src\main\resources\application-zzw.yml`
- [ ] **Step 1: Add JWT generation**
@@ -553,13 +553,13 @@ Validation must:
- Reject if absolute clock drift is greater than 300 seconds.
- Reject if account does not match configured account.
- [ ] **Step 3: Add config**
- [ ] **Step 3: Read config from `customerMap.shopee`**
Use profile values like:
JWT and Shopee host configuration live in `application-zzw.yml` under `customerMap.shopee`:
```yaml
shopee:
automation:
customerMap:
shopee:
account: xxx
secret: xxx
env: uat
@@ -568,7 +568,7 @@ shopee:
readTimeoutMillis: 10000
```
Do not hard-code secrets in code.
`ShopeeJwtService` and `ShopeeAutomationVendorService` must read `account`, `secret`, host environment, country id, and timeout values from `customerMap.shopee`. Do not hard-code secrets in code and do not add duplicate Shopee JWT config under another profile file in this phase.
- [ ] **Step 4: Compile edi-shopee**