uptada BaiDuYun
This commit is contained in:
parent
385713aa5d
commit
ded931d01d
@ -47,11 +47,11 @@ export default {
|
|||||||
this.url = `${baseUrl}?redirectUrl=${redirectUrl}&signinSecurityToken=${token}`;
|
this.url = `${baseUrl}?redirectUrl=${redirectUrl}&signinSecurityToken=${token}`;
|
||||||
} else {
|
} else {
|
||||||
console.error('未能从API响应中获取到token:', response);
|
console.error('未能从API响应中获取到token:', response);
|
||||||
this.$message.error('获取登录信息失败,请重试。');
|
this.$message.error('获取登录信息失败,请重试');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('获取百度云Token失败:', error);
|
console.error('获取百度云Token失败:', error);
|
||||||
this.$message.error('网络错误,获取登录信息失败。');
|
this.$message.error('网络错误,获取登录信息失败');
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ export default {
|
|||||||
orderId = refundInfo.uuidList[0];
|
orderId = refundInfo.uuidList[0];
|
||||||
} else {
|
} else {
|
||||||
console.warn('未在 refundInfo 中找到有效的订单ID字段 (uuidList, orderId, orderIdList)');
|
console.warn('未在 refundInfo 中找到有效的订单ID字段 (uuidList, orderId, orderIdList)');
|
||||||
this.$message.warning('退订信息不完整,未找到订单ID。');
|
this.$message.warning('退订信息不完整,未找到订单ID');
|
||||||
return; // 如果没有订单ID,不继续执行
|
return; // 如果没有订单ID,不继续执行
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ export default {
|
|||||||
this.userid = sessionStorage.getItem('userId');
|
this.userid = sessionStorage.getItem('userId');
|
||||||
if (!this.userid) {
|
if (!this.userid) {
|
||||||
console.error('未获取到用户ID (sessionStorage 中缺少 userId)');
|
console.error('未获取到用户ID (sessionStorage 中缺少 userId)');
|
||||||
this.$message.error('用户信息获取失败,请重新登录。');
|
this.$message.error('用户信息获取失败,请重新登录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,21 +109,21 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg || '退订失败,请稍后重试。');
|
this.$message.error(res.msg || '退订失败,请稍后重试');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// 捕获网络错误或请求异常 (如超时、连接失败)
|
// 捕获网络错误或请求异常 (如超时、连接失败)
|
||||||
console.error("调用退订接口 reqBaiduJudgePrice 失败 (网络/请求错误):", error);
|
console.error("调用退订接口 reqBaiduJudgePrice 失败 (网络/请求错误):", error);
|
||||||
// 可以根据 error 对象提供更具体的提示,例如区分超时和断网
|
// 可以根据 error 对象提供更具体的提示,例如区分超时和断网
|
||||||
this.$message.error('网络请求失败或服务异常,请检查网络连接后重试。');
|
this.$message.error('网络请求失败或服务异常,请检查网络连接后重试');
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
// 无论成功或失败,都结束加载状态
|
// 无论成功或失败,都结束加载状态
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log('接收到的消息不包含有效的退款信息。');
|
console.log('接收到的消息不包含有效的退款信息');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user