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
33ee4fd09e
commit
fa9d0f10ac
@ -736,9 +736,9 @@ export default class user {
|
|||||||
skuid = await gsCfg.getBingCookie(e.user_id);
|
skuid = await gsCfg.getBingCookie(e.user_id);
|
||||||
cookie = skuid?.ck;
|
cookie = skuid?.ck;
|
||||||
uid = skuid?.item;
|
uid = skuid?.item;
|
||||||
if (!uid && e.user) {
|
if (!uid && e?.user?.getUid) {
|
||||||
uid = e.user.getUid('gs')
|
uid = e?.user?.getUid('gs')
|
||||||
cookie = e.user.mysUser.ck
|
cookie = e?.user?.mysUser?.ck
|
||||||
}
|
}
|
||||||
// if (!uid && e.user) { //获取uid为空时进行后续处理获取 (临时处理方式后续会进行解耦以避免这种情况。。待咕中.)s
|
// if (!uid && e.user) { //获取uid为空时进行后续处理获取 (临时处理方式后续会进行解耦以避免这种情况。。待咕中.)s
|
||||||
// }
|
// }
|
||||||
|
Loading…
Reference in New Issue
Block a user