From b1b0c4eda9359be18efd5f6bdf02be5741740e6a Mon Sep 17 00:00:00 2001 From: hackrobot Date: Fri, 4 Oct 2024 19:23:07 +0800 Subject: [PATCH] 'ss' --- .gitignore | 2 +- config/index.js | 4 ++-- src/pages/index/index.jsx | 4 ++-- src/pages/meetup/Detail/index.jsx | 2 +- src/pages/salon/index.tsx | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 331e8f6..ed8e7a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -dist/ +# dist/ deploy_versions/ .temp/ .rn_temp/ diff --git a/config/index.js b/config/index.js index d49354f..e1ad298 100644 --- a/config/index.js +++ b/config/index.js @@ -85,10 +85,10 @@ const config = { // host: 'nomad.hackrobot.cn', // 替换为您的域名 // port: 10087, // 选择一个适当的端口号 proxy: { - '${TARO_APP_API}/': { + 'api': { target: JSON.parse('"http://localhost:8700"'), //本地调试端口 pathRewrite: { - '^${TARO_APP_API}/': '/' + 'api/': '/' }, changeOrigin: true } diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index 5905836..6bb5874 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -123,7 +123,7 @@ const Index = () => { } else { let nowUrl = window.location.href; window.localStorage.removeItem("openid"); - let payUrl = `https://payjs.cn${TARO_APP_API}/openid?mchid=1561724891&callback_url=${nowUrl}`; + let payUrl = `https://payjs.cn/api/openid?mchid=1561724891&callback_url=${nowUrl}`; window.location.href = payUrl; } }; @@ -281,7 +281,7 @@ const Index = () => { // console.log("111"); Taro.request({ method: "POST", - url: `${TARO_APP_API}//payh5`, + url: `${TARO_APP_API}/payh5`, // url: "${TARO_APP_API}/payh5", // url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 diff --git a/src/pages/meetup/Detail/index.jsx b/src/pages/meetup/Detail/index.jsx index 961068e..d285f40 100644 --- a/src/pages/meetup/Detail/index.jsx +++ b/src/pages/meetup/Detail/index.jsx @@ -72,7 +72,7 @@ const Detail = () => { // console.log("111"); Taro.request({ method:'POST', - url: "${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 + url: `${TARO_APP_API}/payh5`, //仅为示例,并非真实的接口地址 // url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 data: { diff --git a/src/pages/salon/index.tsx b/src/pages/salon/index.tsx index df60381..9270c40 100644 --- a/src/pages/salon/index.tsx +++ b/src/pages/salon/index.tsx @@ -60,7 +60,7 @@ const Salon = () => { // console.log("111"); Taro.request({ method: "POST", - url: "${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 + url: `${TARO_APP_API}/payh5`, //仅为示例,并非真实的接口地址 // url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 data: {