fix: 读取uid出错 (#369)

Fixed #369
This commit is contained in:
shanmite 2024-04-12 14:47:59 +08:00
parent 5aa50484fe
commit 60e211ef3a

View File

@ -437,10 +437,11 @@ const bili_client = {
const
res = strToJson(responseText),
{ code, data } = res,
{ card } = data || {};
{ card } = data || {},
{ desc } = card || {};
switch (code) {
case 0:
if (card && responseText.length > 100) {
if (card && desc) {
return [false, card, `ok`];
} else {
return [false, undefined, `获取动态数据异常:\n${responseText}`];