fix: 更新API端点路径至v2版本
将/miniprogram/user/onlineCarHailing和/miniprogram/user等API端点路径更新为/v2/miniprogram/user/onlineCarHailing和/v2/miniprogram/user,以适配后端API的v2版本
This commit is contained in:
@@ -36,7 +36,7 @@ Page({
|
||||
title: '查询中...'
|
||||
})
|
||||
|
||||
t.request('/miniprogram/Refund/query', { mobile }, !0).then((res) => {
|
||||
t.request('/v2/miniprogram/Refund/query', { mobile }, !0).then((res) => {
|
||||
wx.hideLoading()
|
||||
if (res.code == 200) {
|
||||
this.setData({
|
||||
@@ -70,7 +70,7 @@ Page({
|
||||
})
|
||||
return
|
||||
}
|
||||
t.request('/miniprogram/pay/refund', {token: this.data.userInfo.token}, !0).then((res) => {
|
||||
t.request('/v2/miniprogram/pay/refund', {token: this.data.userInfo.token}, !0).then((res) => {
|
||||
wx.hideLoading()
|
||||
if (res.code == 200) {
|
||||
wx.showToast({
|
||||
@@ -117,7 +117,7 @@ Page({
|
||||
})
|
||||
return
|
||||
}
|
||||
t.request('/miniprogram/pay/refundOffline', {token: this.data.userInfo.token}, !0).then((res) => {
|
||||
t.request('/v2/miniprogram/pay/refundOffline', {token: this.data.userInfo.token}, !0).then((res) => {
|
||||
wx.hideLoading()
|
||||
if (res.code == 200) {
|
||||
wx.showToast({
|
||||
|
||||
Reference in New Issue
Block a user