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

补充语法问题避免报错

This commit is contained in:
ctrlcvs 2023-06-01 23:54:11 +08:00
parent 33ee4fd09e
commit fa9d0f10ac

View File

@ -736,9 +736,9 @@ export default class user {
skuid = await gsCfg.getBingCookie(e.user_id);
cookie = skuid?.ck;
uid = skuid?.item;
if (!uid && e.user) {
uid = e.user.getUid('gs')
cookie = e.user.mysUser.ck
if (!uid && e?.user?.getUid) {
uid = e?.user?.getUid('gs')
cookie = e?.user?.mysUser?.ck
}
// if (!uid && e.user) { //获取uid为空时进行后续处理获取 (临时处理方式后续会进行解耦以避免这种情况。。待咕中.)s
// }