From b7eb749eb71ae802f9868e3b099aa362e23d7cc0 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Sat, 06 Sep 2025 18:33:05 +0800
Subject: [PATCH] 1
---
src/service/otc.js | 32 +++++++++++++++++++++++---------
1 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/src/service/otc.js b/src/service/otc.js
index a78b32e..b44a202 100644
--- a/src/service/otc.js
+++ b/src/service/otc.js
@@ -1,5 +1,9 @@
+// import { httpJson } from "@/service/http";
+// import request from "@/service/request";
+
import { httpJson } from "@/service/http";
-import request from "@/service/request";
+import request from './request'
+
//获取 支付方式配置 列表
const ctcPaymentMethodConfig = (params) => {
return httpJson({
@@ -49,7 +53,7 @@
//获取 用户支付方式列表(需匹配承兑商广告支付方式)
const ctcPaymentMethodUserPay = (params) => {
return httpJson({
- url: "/api/c2cPaymentMethod!getUserPaymentsByAd.action",
+ url: "/api/paymentMethod/myList",
method: "get",
isLoading: false
}, params)
@@ -186,7 +190,7 @@
//获取 订单 详情
const ctcOrderGetDetail = (params) => {
return httpJson({
- url: "/api/c2cOrder/apply",
+ url: "/api/c2cOrder/get",
method: "get",
isLoading: false
}, params)
@@ -213,11 +217,12 @@
//取消订单
const ctcOrderCancel = (params) => {
- return httpJson({
+ return request({
url: "/api/c2cOrder/orderCancel",
- method: "get",
- isLoading: false
- }, params)
+ method: "POST",
+ loading: false,
+ params
+ })
};
@@ -386,7 +391,7 @@
export const getSessionToken = params => {
return httpJson({
url: "/api/c2cOrder/orderOpen",
- method: "get",
+ method: "post",
}, params)
}
@@ -466,6 +471,15 @@
);
};
+//支付完成
+const ctcOrderPayFinish = (params) => {
+ return httpJson({
+ url: "/api/c2cOrder!pay_finish.action",
+ method: "get",
+ isLoading: false
+ }, params)
+};
+
const otcApi = {
ctcPaymentMethodConfig,
@@ -478,7 +492,7 @@
paymentMethodConfigDetail, getUserName,
c2cGetPayCurrencyList,
c2cAppeal,
- c2cgetBestPrice
+ c2cgetBestPrice, ctcOrderPayFinish
}
export default otcApi
--
Gitblit v1.9.3