let global = {}


// const application='prod'	
const application='dev'
// const application='test'

if (application == 'prod') {
	//正式环境
	global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
	global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'
	global.enabledCrypto = true
}else if (application == 'dev') {
	//开发环境
	global.baseUrl = 'http://192.168.1.168:2366/'
	global.WebSocketUrl = 'ws://192.168.1.168:2366/websocket/'
	global.enabledCrypto = true
}else if (application == 'test') {
	//测试环境
	global.baseUrl = 'http://139.159.240.119:2366/'
	global.WebSocketUrl = 'ws://139.159.240.119:2366/websocket/'
	global.enabledCrypto = true
}


global.tokenUrl = global.baseUrl +
	'blade-auth/oauth/token?tenantId=000000&password=21232f297a57a5a743894a0e4a801fc3&username=admin'

global.socket_prefix = 'USER:'

global.socket_prefix_SHOP = 'SHOP:'

global.cart_prefix = 'cart:'

global.platform = {
	SHOP: "SHOP",
	MALL: "MALL"
}

global.userType = {
	USER: "普通用户",
	CHANNEL: "渠道代理",
	CITY: "城市代理",
	SHOP: "商户",
	MALL: "商场",
}

// global.agenterTypeId='1423464045809364994'
global.agenterTypeId = 'agent_channel_setting'

global.paymentScene = {
	SCAN_CODE: 'SCAN_CODE',
	TRANSFER: 'TRANSFER',
	PAY_CODE: 'PAY_CODE',
	MINI_PROGRAM: 'MINI_PROGRAM'
}

global.paymentType = {
	YEE_PAY: "YEE_PAY"
}
global.orderType = {
	USER_PAY: 'USER_PAY',
	AGENT_CHARGE: 'AGENT_CHARGE',
	MALL_CHARGE: 'MALL_CHARGE'
}

global.takeType = {
	dine_in: '店内堂食',
	package: '到店自取',
	delivery: '商家配送'
}
global.takeTypeList = ['店内堂食', '到店自取', '商家配送']

global.mustOrder = '必选'

global.payStatus = {
	IS_WAIT: '待付款',
	IS_PAY: '付款成功',
	IS_CANCEL: '取消付款'
}

global.wxParams = {
	APPID: 'wx9ad53e8c83ae1a51'
}

global.TRANSFORM_PARAMS = '95963'


export default global
