uptada BaiDuYun

This commit is contained in:
hrx 2025-09-19 16:04:28 +08:00
parent 385713aa5d
commit ded931d01d

View File

@ -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('接收到的消息不包含有效的退款信息');
} }
} }
} }