去除前端硬编码域名,改为动态获取当前站点域名
This commit is contained in:
@@ -45,16 +45,16 @@ const lakalaGateways: Record<string, string> = {
|
||||
}
|
||||
|
||||
const defaultNotifyURLs: Record<string, string> = {
|
||||
leshua: 'https://hao858.com/api/payments/leshua/notify',
|
||||
lakala: 'https://hao858.com/api/payments/lakala/notify',
|
||||
shuncheng: 'https://hao858.com/api/payments/shuncheng/notify',
|
||||
leshua: `${window.location.origin}/api/payments/leshua/notify`,
|
||||
lakala: `${window.location.origin}/api/payments/lakala/notify`,
|
||||
shuncheng: `${window.location.origin}/api/payments/shuncheng/notify`,
|
||||
mock: '',
|
||||
}
|
||||
|
||||
const defaultJumpURLs: Record<string, string> = {
|
||||
leshua: 'https://hao858.com/orders',
|
||||
lakala: 'https://hao858.com/orders',
|
||||
shuncheng: 'https://hao858.com/orders',
|
||||
leshua: `${window.location.origin}/orders`,
|
||||
lakala: `${window.location.origin}/orders`,
|
||||
shuncheng: `${window.location.origin}/orders`,
|
||||
mock: '',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user