iws登录修改

This commit is contained in:
hayu 2026-02-12 11:35:12 +08:00
parent 9146743be3
commit e7e303dd36
1 changed files with 5 additions and 1 deletions

View File

@ -47,8 +47,12 @@ onMounted(async () => {
if (origin.indexOf('ticket') != -1) {
try {
uni.showLoading({ title: '登录中' })
let ticketPart = origin.split('ticket=')[1]?.split('#/')[0]
|| origin.split('ticket%3D')[1]?.split('%26')[0];
let ticket = ticketPart?.includes('&') ? ticketPart.split('&')[0] : ticketPart;
const { data: result } = await iwsLoginAPI({
ticket: origin.split('ticket=')[1].split('#/')[0],
ticket: ticket,
sysType: 1,
})