demain
import env from './env';
export const mtop = {
// h5api.waptest.taobao.com h5api.wapa.taobao.com h5api.m.taobao.com
// acs-waptest.eleme.test be.daily.elenet.me fuwu-mtop.daily.elenet.me
// pre-mtop.ele.me mtop.ele.me
// local: {
// mainDomain: 'elenet.me',
// subDomain: 'daily',
// prefix: 'fuwu-mtop',
// },
// nrshop.ele.me
local: {
mainDomain: 'me',
subDomain: 'ele',
prefix: 'nrshop',
},
daily: {
mainDomain: 'elenet.me',
subDomain: 'daily',
prefix: 'fuwu-mtop',
},
prod: {
mainDomain: 'me',
subDomain: 'ele',
prefix: 'mtop',
},
pre: {
mainDomain: 'me',
subDomain: 'ele',
prefix: 'pre-mtop',
},
ppe: {
mainDomain: 'me',
subDomain: 'ele',
prefix: 'pre-mtop',
},
};
export const delivery = {
local: 'https://app-api-shop.daily.elenet.me/delivery/invoke/',
daily: 'https://app-api-shop.daily.elenet.me/delivery/invoke/',
ppe: 'https://ppe-app-api.shop.ele.me/delivery/invoke/',
pre: 'https://ppe-app-api.shop.ele.me/delivery/invoke/',
prod: 'https://app-api.shop.ele.me/delivery/invoke/',
};
export const shop = {
local: 'https://app-api-shop.daily.elenet.me/shop/invoke/',
daily: 'https://app-api-shop.daily.elenet.me/shop/invoke/',
ppe: 'https://ppe-app-api.shop.ele.me/shop/invoke/',
pre: 'https://ppe-app-api.shop.ele.me/shop/invoke/',
prod: 'https://app-api.shop.ele.me/shop/invoke/',
};
export const productOrder = {
// https://shadow.daily.elenet.me/crayfish/shop-delivery/product-order
local: 'https://shadow.elemecdn.com/crayfish/shop-delivery/product-order',
daily: 'https://shadow.elemecdn.com/crayfish/shop-delivery/product-order',
ppe: 'https://shadow.elemecdn.com/crayfish/ppe-shop-delivery/product-order',
pre: 'https://shadow.elemecdn.com/crayfish/ppe-shop-delivery/product-order',
prod: 'https://shadow.elemecdn.com/crayfish/shop-delivery/product-order',
};
export const crayfish = {
local: 'https://shadow.elemecdn.com/crayfish/melody-delivery.ele.me',
daily: 'https://shadow.elemecdn.com/crayfish/melody-delivery.ele.me',
ppe: 'https://shadow.elemecdn.com/crayfish/melody-delivery.ele.me',
pre: 'https://shadow.elemecdn.com/crayfish/melody-delivery.ele.me',
prod: 'https://shadow.elemecdn.com/crayfish/melody-delivery.ele.me',
};
const href = encodeURIComponent(window.location.href);
export const feedbackAddress = {
local: `https://xy-dom.daily.elenet.me/feedback/address?reportorType=3&shopIdType=1&channel=${href}&shopId=:shopId`,
daily: `https://xy-dom.daily.elenet.me/feedback/address?reportorType=3&shopIdType=1&channel=${href}&shopId=:shopId`,
ppe: `https://ppe-xy-dom.faas.ele.me/feedback/address?reportorType=3&shopIdType=1&channel=${href}&shopId=:shopId`,
pre: `https://ppe-xy-dom.faas.ele.me/feedback/address?reportorType=3&shopIdType=1&channel=${href}&shopId=:shopId`,
prod: `https://xy-dom.faas.ele.me/feedback/address?reportorType=3&shopIdType=1&channel=${href}&shopId=:shopId`,
};
const oldUrl = {
local: 'https://melody-delivery.faas.daily.elenet.me/',
daily: 'https://melody-delivery.faas.daily.elenet.me/',
pre: 'https://melody-delivery.faas.ele.me/',
ppe: 'https://melody-delivery.faas.ele.me/',
prod: 'https://melody-delivery.faas.ele.me/',
};
export default {
mtop: mtop[env],
productOrder: productOrder[env],
delivery: delivery[env],
shop: shop[env],
crayfish: crayfish[env],
feedbackAddress: feedbackAddress[env],
oldUrl: oldUrl[env],
}
漫思