diff --git a/proxy.conf.json b/proxy.conf.json new file mode 100644 index 0000000..f0fcba4 --- /dev/null +++ b/proxy.conf.json @@ -0,0 +1,11 @@ +{ + "/api":{ + "target":"https://geo.datav.aliyun.com", + "secure":false, + "logLevel":"debug", + "changeOrigin":true, + "pathRewrite":{ + "^/api":"" + } + } +} diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 5bf5f9a..6d6c8c2 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -6,9 +6,9 @@ export const environment = { production: false, baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址) // orderUrl: 'http://localhost:9304/order/', - imageUrl: 'https://hsgcs.dctpay.com/filesystem/', - // baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) + // imageUrl: 'https://hsgcs.dctpay.com/filesystem/', // baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) + orderUrl: 'https://hsgcs.dctpay.com/order/', // 测试环境服务器地址(请求数据地址) // imageUrl: 'https://hsgcs.dctpay.com/filesystem/', key: 'https://hsgcs.dctpay.com/phone-recharge-H5/index.html?codeValue=', inviteUrl: 'https://hsgcs.dctpay.com/wx/?action=ic&id=',