mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
parent
5aa50484fe
commit
60e211ef3a
@ -437,10 +437,11 @@ const bili_client = {
|
|||||||
const
|
const
|
||||||
res = strToJson(responseText),
|
res = strToJson(responseText),
|
||||||
{ code, data } = res,
|
{ code, data } = res,
|
||||||
{ card } = data || {};
|
{ card } = data || {},
|
||||||
|
{ desc } = card || {};
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case 0:
|
case 0:
|
||||||
if (card && responseText.length > 100) {
|
if (card && desc) {
|
||||||
return [false, card, `ok`];
|
return [false, card, `ok`];
|
||||||
} else {
|
} else {
|
||||||
return [false, undefined, `获取动态数据异常:\n${responseText}`];
|
return [false, undefined, `获取动态数据异常:\n${responseText}`];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user