yz-yuki-plugin 2.0.9-3 → 2.0.9-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -268,7 +268,7 @@ class BiliRiskCookie {
|
|
|
268
268
|
method: 'GET',
|
|
269
269
|
headers: lodash.merge(BiliApi.BIlIBILI_LOGIN_HEADERS, {
|
|
270
270
|
'User-agent': BiliApi.BILIBILI_HEADERS['User-Agent'],
|
|
271
|
-
'Cookie': SESSDATA_str ? SESSDATA_str : ''
|
|
271
|
+
'Cookie': SESSDATA_str ? `SESSDATA=${SESSDATA_str}` : ''
|
|
272
272
|
}),
|
|
273
273
|
redirect: 'follow'
|
|
274
274
|
});
|
|
@@ -282,7 +282,7 @@ class BiliRiskCookie {
|
|
|
282
282
|
const current_exp = level_info?.current_exp;
|
|
283
283
|
const next_exp = level_info?.next_exp;
|
|
284
284
|
const ttl = SESSDATA_expires;
|
|
285
|
-
const LoginCookieTTLStr = ttl === -1 ? '永久' : ttl === -2 ? '-' : `${new Date(
|
|
285
|
+
const LoginCookieTTLStr = ttl === -1 ? '永久' : ttl === -2 ? '-' : `${new Date(ttl).toLocaleString()}`;
|
|
286
286
|
e.reply(`~B站账号已登陆~\n有效期至:${LoginCookieTTLStr}。\n昵称:${uname}\nuid:${mid}\n硬币:${money}\n经验等级:${current_level}\n当前经验值exp:${current_exp}\n下一等级所需exp:${next_exp}`);
|
|
287
287
|
return true;
|
|
288
288
|
}
|