mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 11:40:51 +08:00
修正签到用户未绑定数据时候为空触发异常
This commit is contained in:
parent
1f0fa8f290
commit
bd32b7f2ea
@ -111,7 +111,7 @@ export default class MihoYoApi {
|
|||||||
// 获取账号信息
|
// 获取账号信息
|
||||||
const objData = await this.getUserInfo(kkbody)
|
const objData = await this.getUserInfo(kkbody)
|
||||||
let data = objData.data
|
let data = objData.data
|
||||||
if (data?.list?.length == 0) {
|
if (data?.list?.length == 0||!data?.list) {
|
||||||
return {
|
return {
|
||||||
message: `未绑定${name}信息`
|
message: `未绑定${name}信息`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user