Commit 60ee1d0a authored by 王苓芝's avatar 王苓芝

服务地址修改

parent ab478116
import { stringify } from 'querystring';
import _ from 'lodash';
import request from '@/utils/request';
// import config from '../../../../config/env.config';
import config from '../../../../config/env.config';
export async function query(param) {
const params = {
......@@ -9,9 +9,7 @@ export async function query(param) {
pageNo: param.current,
};
const data = await request.post('/api/kdsp/op/appeal/list', {
// prefix: 'http://yapi.quantgroups.com/mock/351',
// prefix: config.kdspApi,
prefix: 'https://kdsp-operation-test2.liangkebang.net',
prefix: config.kdspOpApi,
data: stringify(_.omitBy(params, v => !v)),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
......@@ -25,9 +23,7 @@ export async function query(param) {
export async function getDetail(params) {
const { data } = await request.post('/api/kdsp/op/appeal/info', {
data: stringify(_.omitBy(params, v => !v)),
// prefix: config.kdspApi,
prefix: 'https://kdsp-operation-test2.liangkebang.net',
// prefix: 'http://yapi.quantgroups.com/mock/351',
prefix: config.kdspOpApi,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
......@@ -38,9 +34,7 @@ export async function getDetail(params) {
export async function audit(params) {
const data = await request.post('/api/kdsp/op/appeal/audit', {
data: stringify(params),
// prefix: config.kdspApi,
prefix: 'https://kdsp-operation-test2.liangkebang.net',
// prefix: 'http://yapi.quantgroups.com/mock/351',
prefix: config.kdspOpApi,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment