config.js 864 Bytes
Newer Older
chscls@163.com's avatar
chscls@163.com committed
1 2
import req from '@/utils/request';
// import dictMap from './dictMap';
3 4 5
import { queryApiActionPath, queryWsPath } from '@/webPublic/one_stop_public/utils/queryConfig';

var localMockHostPath = 'false'; //
chscls@163.com's avatar
chscls@163.com committed
6 7
var localhostPath = queryApiActionPath();
var wsPath = queryWsPath();
8

chscls@163.com's avatar
chscls@163.com committed
9 10
// 测试对接接口用地址不用时删除
async function request(data) {
11 12 13 14
	return req(`${data.url}`, {
		method: 'POST',
		body: data.params,
	});
chscls@163.com's avatar
chscls@163.com committed
15
}
16

chscls@163.com's avatar
chscls@163.com committed
17
const config = {
18 19 20 21 22 23 24 25 26 27 28 29
	// dictMap:dictMap,
	httpServer: localhostPath,
	httpMockServer: localMockHostPath,
	rapFlag: true,
	onlinePath: '/transacApi/',
	onlineImagePath: '',
	rapImagePath: localhostPath,
	uploadUrl: localhostPath + '/upload',
	websocketUrl: wsPath != null ? wsPath : localhostPath.replace('http', 'ws') + '/websocket',
	payUrl: localhostPath + '/createWixinPayCode',
	checkPath: false,
	request,
30
};
chscls@163.com's avatar
chscls@163.com committed
31

32
export default config;