feat(douyin-mashida): 全面统一为 /h5/<订单号> 直充路径,更新面板提示与直发链接生成
- 抖音码速达买家直充链接与兜底配置基址统一改为 https://<域名>/h5(直充路径为 /h5/<订单号>) - 前端配置面板示例与提示升级为真实 16 位平台订单号形态(如 /h5/2628301923197355) - 一键填入域名同步适配 /h5 基址,并在后端发券与发货私信推送中直接生成 /h5/<订单号> - 数据库本地配置同步更新为 http://localhost/h5 验证方式:前端类型检查与打包构建通过,全量 132 项前端单测与 674 项后端单测全部通过
This commit is contained in:
@@ -78,8 +78,8 @@ function createEmptyConfig(): AdminDouyinMashidaConfig {
|
||||
secret: '',
|
||||
secretMasked: '',
|
||||
hasSecret: false,
|
||||
certLink: '',
|
||||
claimLinkBase: '',
|
||||
certLink: 'http://localhost/h5',
|
||||
claimLinkBase: 'http://localhost/h5',
|
||||
messageTemplate: '您的订单已发货,请点击链接领取:{link}',
|
||||
claimMessageEnabled: true,
|
||||
afterVerifyLink: '',
|
||||
@@ -144,11 +144,11 @@ export function DouyinMashidaPanel() {
|
||||
const origin = window.location.origin
|
||||
setConfig((prev) => ({
|
||||
...prev,
|
||||
claimLinkBase: `${origin}/claim`,
|
||||
certLink: `${origin}/redeem`,
|
||||
afterVerifyLink: `${origin}/redeem`,
|
||||
claimLinkBase: `${origin}/h5`,
|
||||
certLink: `${origin}/h5`,
|
||||
afterVerifyLink: `${origin}/h5`,
|
||||
}))
|
||||
showSuccess('已自动填入当前域名,请点击右上角「保存配置」以生效')
|
||||
showSuccess('已自动填入当前域名(/h5/<订单号>),请点击右上角「保存配置」以生效')
|
||||
}
|
||||
|
||||
/** 向平台订阅或停用推送 */
|
||||
@@ -439,11 +439,11 @@ export function DouyinMashidaPanel() {
|
||||
<Row gutter={[20, 16]}>
|
||||
<Col xs={24} md={12}>
|
||||
<Space direction="vertical" size={4} style={{ width: '100%' }}>
|
||||
<Text strong>买家领取页基址 (claimLinkBase)</Text>
|
||||
<Text strong>买家 H5 直充链接基址 (claimLinkBase)</Text>
|
||||
<Input
|
||||
value={config.claimLinkBase}
|
||||
onChange={(event) => updateField('claimLinkBase', event.target.value)}
|
||||
placeholder="https://你的公网域名/claim"
|
||||
placeholder="https://你的公网域名/h5"
|
||||
/>
|
||||
{claimLinkPreview ? (
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
@@ -464,14 +464,14 @@ export function DouyinMashidaPanel() {
|
||||
|
||||
<Col xs={24} md={12}>
|
||||
<Space direction="vertical" size={4} style={{ width: '100%' }}>
|
||||
<Text strong>通用兑换链接 (certLink)</Text>
|
||||
<Text strong>兜底领取链接 (certLink)</Text>
|
||||
<Input
|
||||
value={config.certLink}
|
||||
onChange={(event) => updateField('certLink', event.target.value)}
|
||||
placeholder="https://你的公网域名/redeem"
|
||||
placeholder="https://你的公网域名/h5"
|
||||
/>
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||
通用兜底兑换链接(无商品映射或旧单卡券兜底)
|
||||
通用兜底链接,默认与直充 H5 基址保持一致
|
||||
</Text>
|
||||
</Space>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user