acdr-ui/dist/dev/mp-weixin/logic/pay.js

29 lines
833 B
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
var __async = (__this, __arguments, generator) => {
return new Promise((resolve, reject) => {
var fulfilled = (value) => {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
};
var rejected = (value) => {
try {
step(generator.throw(value));
} catch (e) {
reject(e);
}
};
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
step((generator = generator.apply(__this, __arguments)).next());
});
};
2024-10-01 09:15:35 +08:00
require("../common/vendor.js");
2024-09-19 07:20:14 +08:00
const utils_http = require("../utils/http.js");
const payOrder = (orderId) => __async(exports, null, function* () {
const payRes = yield utils_http.httpPost("/order/pay/" + orderId, {});
return payRes;
});
exports.payOrder = payOrder;