后端迁移快手云领取服务
This commit is contained in:
+3
-1
@@ -23,7 +23,9 @@ import { getClaimContext, getClaimDetail } from './claim-session-service.js'
|
||||
const KUAISHOU_CLOUD_GUIDE_DIR = path.resolve(PROJECT_ROOT, '../../tems/imgs')
|
||||
const ALLOWED_GUIDE_FILES = new Set(['1.png', '2.png', '3.png'])
|
||||
|
||||
export async function verifyKuaishouCloudClaimTicket(token, payload = {}) {
|
||||
type JsonObject = Record<string, any>
|
||||
|
||||
export async function verifyKuaishouCloudClaimTicket(token: unknown, payload: JsonObject = {}) {
|
||||
const context = await getClaimContext(token)
|
||||
const now = nowIso()
|
||||
|
||||
@@ -518,6 +518,15 @@
|
||||
- `npm run typecheck`
|
||||
- `npm run build`
|
||||
- `npm test` 共 139 个用例通过
|
||||
114. 快手 Cloud 领取页动作与轮询同步模块迁移到 `.ts`:
|
||||
- `src/services/claim/kuaishou-cloud-claim-service.ts`
|
||||
- `src/services/claim/kuaishou-cloud-sync-service.ts`
|
||||
115. 快手 Cloud 核销码校验、指引图片路径、角色确认、领取页兑换触发与领取页轮询补同步已进入 TS 编译链路;核销 payload 补齐动态对象类型
|
||||
116. Docker 内验证通过:
|
||||
- `src/services/claim/claim-session-service.test.js` 共 2 个用例通过
|
||||
- `npm run typecheck`
|
||||
- `npm run build`
|
||||
- `npm test` 共 139 个用例通过
|
||||
|
||||
## 下一步建议
|
||||
|
||||
|
||||
Reference in New Issue
Block a user