fix:替换appID为7a9,修复支付分调用失败订单无法正确取消的问题

This commit is contained in:
2025-07-08 09:03:06 +08:00
parent 309963755d
commit 893a2a55c6
51 changed files with 157 additions and 148 deletions
+3 -5
View File
@@ -3,7 +3,6 @@ const common_vendor = require("../common/vendor.js");
const config_url = require("./url.js");
const request = (option) => {
return new Promise((resolve, reject) => {
common_vendor.index.__f__("log", "at config/http.js:9", `发起请求: ${option.method} ${config_url.URL + option.url}`, option.data);
if (!option.hideLoading) {
common_vendor.index.showLoading({
title: option.loadingText || "加载中...",
@@ -22,9 +21,8 @@ const request = (option) => {
"Clientid": common_vendor.index.getStorageSync("client_id")
},
success(res) {
common_vendor.index.__f__("log", "at config/http.js:32", `请求响应: ${option.url}`, res);
if (res.statusCode !== 200) {
common_vendor.index.__f__("error", "at config/http.js:36", `HTTP状态码错误: ${res.statusCode}`, res.data);
common_vendor.index.__f__("error", "at config/http.js:33", `HTTP状态码错误: ${res.statusCode}`, res.data);
if (res.data) {
resolve(res.data);
return;
@@ -33,7 +31,7 @@ const request = (option) => {
return;
}
if (res.data && res.data.code !== 200) {
common_vendor.index.__f__("warn", "at config/http.js:50", `业务状态码错误: ${res.data.code}`, res.data);
common_vendor.index.__f__("warn", "at config/http.js:47", `业务状态码错误: ${res.data.code}`, res.data);
if (option.ignoreEmptyError && (res.data.code === 500 && res.data.msg && (res.data.msg.includes("未找到") || res.data.msg.includes("不存在")))) {
resolve({
code: 200,
@@ -48,7 +46,7 @@ const request = (option) => {
resolve(res.data);
},
fail(err) {
common_vendor.index.__f__("error", "at config/http.js:74", `请求失败: ${option.url}`, err);
common_vendor.index.__f__("error", "at config/http.js:71", `请求失败: ${option.url}`, err);
reject(err);
},
complete() {
+1 -1
View File
@@ -1,6 +1,6 @@
"use strict";
const URL = "https://unifans.gxfs123.com/api";
const appid = "wxe752f45e7f7aa271";
const appid = "wx2165f0be356ae7a9";
exports.URL = URL;
exports.appid = appid;
//# sourceMappingURL=../../.sourcemap/mp-weixin/config/url.js.map
+2 -2
View File
@@ -58,7 +58,7 @@ const queryById = (id) => {
};
const cancelOrder = (data) => {
return config_http.request({
url: "/orderInfo/cancelOrder",
url: `/device/order/clear/${data.orderId}`,
method: "get",
data
});
@@ -74,7 +74,7 @@ const confirmPaymentAndRent = (orderId) => {
common_vendor.index.__f__("log", "at config/user.js:120", `确认支付并弹出风扇, orderId: ${orderId}`);
return config_http.request({
url: `/app/device/confirmPaymentAndRent?orderId=${orderId}`,
method: "post"
method: "GET"
});
};
const getOrderByOrderNo = (orderNo) => {