1
李凌
2025-09-06 b7eb749eb71ae802f9868e3b099aa362e23d7cc0
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