mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +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)
|
||||
let data = objData.data
|
||||
if (data?.list?.length == 0) {
|
||||
if (data?.list?.length == 0||!data?.list) {
|
||||
return {
|
||||
message: `未绑定${name}信息`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user