修复无法支付的问题

This commit is contained in:
gyq
2026-01-29 18:19:26 +08:00
parent 696a39da99
commit 3e64567d52
4 changed files with 30 additions and 23 deletions

View File

@@ -15,7 +15,8 @@ import {
} from '@/commons/utils/encryptUtil.js'
import infoBox from "@/commons/utils/infoBox.js"
// let baseUrl = ''
let baseUrl = 'https://cashier.sxczgkj.com'
// let baseUrl = 'https://cashier.sxczgkj.com'
let baseUrl = 'https://frp.sxczgkj.com'
// let baseUrl = '/api'
// 多少 ms 以内, 不提示loading
const loadingShowTime = 200
@@ -23,11 +24,11 @@ const loadingShowTime = 200
function getHeader(){
const headerObject={}
headerObject["Authorization"] = storageManage.token()
// headerObject["Authorization"] = storageManage.token()
headerObject["Content-Type"] = 'application/json'
headerObject["loginname"] = 'admin'
headerObject["token"] = 'eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyVHlwZSI6Ik1HIiwiZXhwIjoxNjkwMTgwNzE2LCJ1c2VySWQiOiIyNDQiLCJpYXQiOjE2ODg3MDk0ODcsImxvZ2luTmFtZSI6ImFkbWluIn0.lqxxvv2-FcecQngMBorz4MpkB3mIJQDG-IUULQyV-KQ'
headerObject["userId"] = '244'
// headerObject["loginname"] = 'admin'
// headerObject["token"] = 'eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyVHlwZSI6Ik1HIiwiZXhwIjoxNjkwMTgwNzE2LCJ1c2VySWQiOiIyNDQiLCJpYXQiOjE2ODg3MDk0ODcsImxvZ2luTmFtZSI6ImFkbWluIn0.lqxxvv2-FcecQngMBorz4MpkB3mIJQDG-IUULQyV-KQ'
// headerObject["userId"] = '244'
return headerObject
}

View File

@@ -23,6 +23,7 @@ export function getOpenId(params) {
return request({
url: `/account/user/openId`,
method: 'get',
headers: {},
params
})
}