fix:多平台兼容

This commit is contained in:
2026-03-16 11:52:27 +08:00
parent b3836b8bf2
commit a79cf10bd4
18 changed files with 358 additions and 295 deletions
+3 -2
View File
@@ -50,13 +50,14 @@ export const transformDeviceData = (device) => {
}
// 立即租借
export const rentPowerBank = (deviceNo, phone) => {
export const rentPowerBank = (deviceNo, phone,payway) => {
return request({
url: `/app/device/rentPowerBank?deviceNo=${deviceNo}`,
method: 'post',
data: {
// deviceNo,
phone
phone,
payway
}
})
}
+6 -4
View File
@@ -37,10 +37,12 @@ export const sendVerifyCode = (phonenumber) => {
// 手机号+验证码登录
export const loginWithCode = (phonenumber, smsCode) => {
return request({
url: '/app/user/sms/login',
method: 'post',
data: { phonenumber, smsCode }
// 兼容保留:统一走 quickLoginSMS
return quickLogin({
loginType: 'SMS',
appid,
phonenumber,
smsCode
})
}
+2 -2
View File
@@ -1,7 +1,7 @@
// export const URL = "https://my.gxfs123.com/api" //正式服务器-弃用
// export const URL = "https://manager.fdzpower.com/api" //正式服务器
export const URL = "https://fansdev.gxfs123.com/api" //测试服务器
// export const URL = "http://192.168.5.64:8080" //本地调试
// export const URL = "https://fansdev.gxfs123.com/api" //测试服务器
export const URL = "http://192.168.5.58:8080" //本地调试
// export const URL = "http://127.0.0.1:8080" //本地调试
export const appid = "wx2165f0be356ae7a9" //微信小程序appid