chore(douyin-mashida): 联调脚本适配 /h5 路径与统一后台接口调用
- set-public-url 脚本将 certLink 与 claimLinkBase 统一设置为 <公网地址>/h5 - subscribe 脚本改走后台 HTTP 管理接口,避免在宿主机执行时直连数据库导致连接异常 验证方式:ngrok 隧道下端到端执行 subscribe 与 preflight 自动化校验全部通过
This commit is contained in:
@@ -73,18 +73,16 @@ main().catch((error) => {
|
||||
})
|
||||
|
||||
async function main(): Promise<void> {
|
||||
const certLink = `${publicUrl}/redeem`
|
||||
// 皮肤订单用「路径式」领取页(不带 #):买家从卡券/消息点进来直接领,不用输订单号。
|
||||
// 注意不能沿用 orders.claimBaseUrl(那是 hash 的打手领取页)。
|
||||
const claimLinkBase = `${publicUrl}/claim`
|
||||
const certLink = `${publicUrl}/h5`
|
||||
const claimLinkBase = `${publicUrl}/h5`
|
||||
const messageUrl = `${publicUrl}${MESSAGE_PATH}`
|
||||
|
||||
console.log('抖音码速达 · 公网联调地址切换')
|
||||
console.log('─'.repeat(72))
|
||||
console.log(`后台地址 ${apiBase}`)
|
||||
console.log(`公网地址 ${publicUrl}`)
|
||||
console.log(`certLink ${certLink} (通用兜底兑换链接,非皮肤订单用)`)
|
||||
console.log(`claimLinkBase ${claimLinkBase} (皮肤订单领取页基址)`)
|
||||
console.log(`certLink ${certLink} (通用兜底 H5 领取链接)`)
|
||||
console.log(`claimLinkBase ${claimLinkBase} (买家 H5 直充领取基址)`)
|
||||
|
||||
const token = String(args.token || '') || (await login())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user