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

View File

@@ -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", //仅为示例,并非真实的接口地址

View File

@@ -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: {

View File

@@ -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: {