2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

修正签到用户未绑定数据时候为空触发异常

This commit is contained in:
Ctrlcvs 2022-08-12 08:24:00 +08:00 committed by leiyilu
parent 1f0fa8f290
commit bd32b7f2ea

View File

@ -111,7 +111,7 @@ export default class MihoYoApi {
// 获取账号信息
const objData = await this.getUserInfo(kkbody)
let data = objData.data
if (data?.list?.length == 0) {
if (data?.list?.length == 0||!data?.list) {
return {
message: `未绑定${name}信息`
}