This commit is contained in:
hackrobot
2024-10-04 19:23:07 +08:00
parent 9d43610fe1
commit b1b0c4eda9
5 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
dist/ # dist/
deploy_versions/ deploy_versions/
.temp/ .temp/
.rn_temp/ .rn_temp/

View File

@@ -85,10 +85,10 @@ const config = {
// host: 'nomad.hackrobot.cn', // 替换为您的域名 // host: 'nomad.hackrobot.cn', // 替换为您的域名
// port: 10087, // 选择一个适当的端口号 // port: 10087, // 选择一个适当的端口号
proxy: { proxy: {
'${TARO_APP_API}/': { 'api': {
target: JSON.parse('"http://localhost:8700"'), //本地调试端口 target: JSON.parse('"http://localhost:8700"'), //本地调试端口
pathRewrite: { pathRewrite: {
'^${TARO_APP_API}/': '/' 'api/': '/'
}, },
changeOrigin: true changeOrigin: true
} }

View File

@@ -123,7 +123,7 @@ const Index = () => {
} else { } else {
let nowUrl = window.location.href; let nowUrl = window.location.href;
window.localStorage.removeItem("openid"); 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; window.location.href = payUrl;
} }
}; };
@@ -281,7 +281,7 @@ const Index = () => {
// console.log("111"); // console.log("111");
Taro.request({ Taro.request({
method: "POST", method: "POST",
url: `${TARO_APP_API}//payh5`, url: `${TARO_APP_API}/payh5`,
// url: "${TARO_APP_API}/payh5", // url: "${TARO_APP_API}/payh5",
// url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 // url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址

View File

@@ -72,7 +72,7 @@ const Detail = () => {
// console.log("111"); // console.log("111");
Taro.request({ Taro.request({
method:'POST', method:'POST',
url: "${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 url: `${TARO_APP_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 // url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址
data: { data: {

View File

@@ -60,7 +60,7 @@ const Salon = () => {
// console.log("111"); // console.log("111");
Taro.request({ Taro.request({
method: "POST", method: "POST",
url: "${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 url: `${TARO_APP_API}/payh5`, //仅为示例,并非真实的接口地址
// url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址 // url: "https://pay.hackrobot.cn${TARO_APP_API}/payh5", //仅为示例,并非真实的接口地址
data: { data: {