From 5cf885e928e5867fb0263bc873ceb1b74372150e Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Mon, 9 Jan 2023 10:57:46 +0800 Subject: [PATCH] 1 --- proxy.conf.json | 11 +++++++++++ src/environments/environment.ts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 proxy.conf.json 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=',