|
@@ -71,14 +71,14 @@ export function getCurrentSite(): any {
|
|
|
|
|
|
|
|
// 定义本地开发环境的域名映射关系
|
|
// 定义本地开发环境的域名映射关系
|
|
|
// 确保你的 hosts 文件已经配置了这些域名指向 127.0.0.1
|
|
// 确保你的 hosts 文件已经配置了这些域名指向 127.0.0.1
|
|
|
- if (host === 'www.xiaoluwebsite.xyz' || host === 'localhost') return 'www'; // 兼容未配hosts的情况
|
|
|
|
|
|
|
+ if (host === 'index.xiaoluwebsite.xyz' || host === 'localhost') return 'www'; // 兼容未配hosts的情况
|
|
|
if (host === 'b.xiaoluwebsite.xyz') return 'b';
|
|
if (host === 'b.xiaoluwebsite.xyz') return 'b';
|
|
|
if (host === 'mro.xiaoluwebsite.xyz') return 'mro';
|
|
if (host === 'mro.xiaoluwebsite.xyz') return 'mro';
|
|
|
if (host === 'fuli.xiaoluwebsite.xyz') return 'fuli';
|
|
if (host === 'fuli.xiaoluwebsite.xyz') return 'fuli';
|
|
|
if (host === 'reg.xiaoluwebsite.xyz') return 'reg';
|
|
if (host === 'reg.xiaoluwebsite.xyz') return 'reg';
|
|
|
if (host === 'breg.xiaoluwebsite.xyz') return 'breg';
|
|
if (host === 'breg.xiaoluwebsite.xyz') return 'breg';
|
|
|
if (host === 'greg.xiaoluwebsite.xyz') return 'greg';
|
|
if (host === 'greg.xiaoluwebsite.xyz') return 'greg';
|
|
|
- if (host === 'passport.xiaoluwebsite.xyz') return 'passport';
|
|
|
|
|
|
|
+ if (host === 'pass.xiaoluwebsite.xyz') return 'passport';
|
|
|
if (host === 'search.xiaoluwebsite.xyz') return 'search';
|
|
if (host === 'search.xiaoluwebsite.xyz') return 'search';
|
|
|
if (host === 'item.xiaoluwebsite.xyz') return 'item';
|
|
if (host === 'item.xiaoluwebsite.xyz') return 'item';
|
|
|
if (host === 'cart.xiaoluwebsite.xyz') return 'cart';
|
|
if (host === 'cart.xiaoluwebsite.xyz') return 'cart';
|
|
@@ -86,7 +86,7 @@ export function getCurrentSite(): any {
|
|
|
if (host === 'payc.xiaoluwebsite.xyz') return 'payc';
|
|
if (host === 'payc.xiaoluwebsite.xyz') return 'payc';
|
|
|
if (host === 'order.xiaoluwebsite.xyz') return 'order';
|
|
if (host === 'order.xiaoluwebsite.xyz') return 'order';
|
|
|
if (host === 'plan.xiaoluwebsite.xyz') return 'plan';
|
|
if (host === 'plan.xiaoluwebsite.xyz') return 'plan';
|
|
|
- if (host === 'plan_info.xiaoluwebsite.xyz') return 'plan_info';
|
|
|
|
|
|
|
+ if (host === 'planinfo.xiaoluwebsite.xyz') return 'plan_info';
|
|
|
if (host === 'i.xiaoluwebsite.xyz') return 'i';
|
|
if (host === 'i.xiaoluwebsite.xyz') return 'i';
|
|
|
if (host === 'easybuv.xiaoluwebsite.xyz') return 'easybuv';
|
|
if (host === 'easybuv.xiaoluwebsite.xyz') return 'easybuv';
|
|
|
|
|
|
|
@@ -133,14 +133,14 @@ export function onPath(path: string) {
|
|
|
let url = '';
|
|
let url = '';
|
|
|
// 域名映射表 (保持不变)
|
|
// 域名映射表 (保持不变)
|
|
|
const domainMap: Record<string, string> = {
|
|
const domainMap: Record<string, string> = {
|
|
|
- www: 'www.xiaoluwebsite.xyz',
|
|
|
|
|
|
|
+ www: 'index.xiaoluwebsite.xyz',
|
|
|
b: 'b.xiaoluwebsite.xyz',
|
|
b: 'b.xiaoluwebsite.xyz',
|
|
|
mro: 'mro.xiaoluwebsite.xyz',
|
|
mro: 'mro.xiaoluwebsite.xyz',
|
|
|
fuli: 'fuli.xiaoluwebsite.xyz',
|
|
fuli: 'fuli.xiaoluwebsite.xyz',
|
|
|
reg: 'reg.xiaoluwebsite.xyz',
|
|
reg: 'reg.xiaoluwebsite.xyz',
|
|
|
breg: 'breg.xiaoluwebsite.xyz',
|
|
breg: 'breg.xiaoluwebsite.xyz',
|
|
|
greg: 'greg.xiaoluwebsite.xyz',
|
|
greg: 'greg.xiaoluwebsite.xyz',
|
|
|
- passport: 'passport.xiaoluwebsite.xyz',
|
|
|
|
|
|
|
+ passport: 'pass.xiaoluwebsite.xyz',
|
|
|
search: 'search.xiaoluwebsite.xyz',
|
|
search: 'search.xiaoluwebsite.xyz',
|
|
|
item: 'item.xiaoluwebsite.xyz',
|
|
item: 'item.xiaoluwebsite.xyz',
|
|
|
cart: 'cart.xiaoluwebsite.xyz',
|
|
cart: 'cart.xiaoluwebsite.xyz',
|
|
@@ -148,7 +148,7 @@ export function onPath(path: string) {
|
|
|
payc: 'payc.xiaoluwebsite.xyz',
|
|
payc: 'payc.xiaoluwebsite.xyz',
|
|
|
order: 'order.xiaoluwebsite.xyz',
|
|
order: 'order.xiaoluwebsite.xyz',
|
|
|
plan: 'plan.xiaoluwebsite.xyz',
|
|
plan: 'plan.xiaoluwebsite.xyz',
|
|
|
- plan_info: 'plan_info.xiaoluwebsite.xyz',
|
|
|
|
|
|
|
+ plan_info: 'planinfo.xiaoluwebsite.xyz',
|
|
|
i: 'i.xiaoluwebsite.xyz',
|
|
i: 'i.xiaoluwebsite.xyz',
|
|
|
easybuv: 'easybuv.xiaoluwebsite.xyz'
|
|
easybuv: 'easybuv.xiaoluwebsite.xyz'
|
|
|
};
|
|
};
|