修改提现接口

This commit is contained in:
GYJ 2024-12-07 13:57:38 +08:00
parent 542bdb8b5d
commit 5312fb7c36
2 changed files with 10 additions and 4 deletions

View File

@ -13,10 +13,15 @@ const http = axios.create({
}
})
// const requestURl = "http://localhost:8100/sqx_fast/";
const requestURl = "https://video.hnsiyao.cn/sqx_fast/";
// const requestURl = "https://dj-api.hnsiyao.cn/sqx_fast/";
/**
* 请求拦截
*/
http.interceptors.request.use(config => {
console.log(Vue.cookie.get('token'))
config.headers['token'] = Vue.cookie.get('token') // 请求头带上token
return config
}, error => {
@ -46,7 +51,7 @@ http.adornUrl = (actionName) => {
// return 'http://192.168.0.132:8184/sqx_fast/' + actionName
// return 'https://duanjudl.xianmxkj.co/sqx_fast/' + actionName
actionName = actionName.replace(/^\//, "");
return 'https://video.hnsiyao.cn/sqx_fast/' + actionName
return requestURl + actionName
}
http.adornUrlUp = (actionName) => {
@ -55,7 +60,7 @@ http.adornUrlUp = (actionName) => {
// return 'http://192.168.0.132:8183/sqx_fast/' + actionName
// return 'https://duanjudl.xianmxkj.co/sqx_fast/' + actionName
actionName = actionName.replace(/^\//, "");
return 'https://video.hnsiyao.cn/sqx_fast/' + actionName
return requestURl + actionName
}
/**

View File

@ -1155,7 +1155,8 @@
// this.tableDataLoading1 = true
let userId = this.$cookie.get('userId')
this.$http({
url: this.$http.adornUrl('cash/cashMoney'),
// url: this.$http.adornUrl('cash/cashMoney'),
url: this.$http.adornUrl('cash/withdraw'),
method: 'get',
params: this.$http.adornParams({
'money': this.outMoney,
@ -2700,7 +2701,7 @@
mounted() {
this.dataSelectUs()
this.withdrawSelect()
this.platformT = this.detail.qdCode
this.homeSelect()
}