feat(douyin-mashida): 全面统一为 /h5/<订单号> 直充路径,更新面板提示与直发链接生成
- 抖音码速达买家直充链接与兜底配置基址统一改为 https://<域名>/h5(直充路径为 /h5/<订单号>) - 前端配置面板示例与提示升级为真实 16 位平台订单号形态(如 /h5/2628301923197355) - 一键填入域名同步适配 /h5 基址,并在后端发券与发货私信推送中直接生成 /h5/<订单号> - 数据库本地配置同步更新为 http://localhost/h5 验证方式:前端类型检查与打包构建通过,全量 132 项前端单测与 674 项后端单测全部通过
This commit is contained in:
@@ -64,9 +64,9 @@ export function describeMissingConfigFields(config: MissingConfigCheck): string[
|
||||
}
|
||||
|
||||
/**
|
||||
* 面板预览用的示例 token(48 位 hex,与真实 claim token 形态一致)。
|
||||
* 面板预览用的示例订单号(与真实 16 位平台订单号形态一致)。
|
||||
*/
|
||||
const CLAIM_LINK_PREVIEW_TOKEN = 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6'
|
||||
const CLAIM_LINK_PREVIEW_TOKEN = '2628301923197355'
|
||||
|
||||
/**
|
||||
* 拼一条领取链接预览:`claimLinkBase` 去尾斜杠 + '/' + token。
|
||||
@@ -88,16 +88,16 @@ export function buildDouyinMashidaClaimLinkPreview(
|
||||
* 领取链接基址的误配提示(无问题返回空串)。
|
||||
*
|
||||
* 重点拦 `#`:`#/claim/{token}` 是**打手**领取页(要绑游戏 UID),
|
||||
* 皮肤买家链接必须是路径式,配错会把买家带到打手流程里。
|
||||
* 皮肤买家链接必须是路径式,例如 https://你的域名/h5
|
||||
*/
|
||||
export function describeClaimLinkBaseWarning(claimLinkBase: string): string {
|
||||
const text = String(claimLinkBase ?? '').trim()
|
||||
if (!text) return ''
|
||||
if (text.includes('#')) {
|
||||
return '不要带 #:#/claim 是打手领取页,皮肤买家链接请用路径式,例如 https://你的域名/claim'
|
||||
return '不要带 #:#/claim 是打手领取页,买家直充链接请用路径式,例如 https://你的域名/h5'
|
||||
}
|
||||
if (!/^https?:\/\//i.test(text)) {
|
||||
return '请填完整地址(http:// 或 https:// 开头),例如 https://你的域名/claim'
|
||||
return '请填完整地址(http:// 或 https:// 开头),例如 https://你的域名/h5'
|
||||
}
|
||||
return ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user