|
|
@@ -1251,7 +1251,7 @@ async function dynamic() {
|
|
|
"cookie": config.cookieStr
|
|
|
}
|
|
|
};
|
|
|
- await magicJS.http.get(myRequest).then(response => {
|
|
|
+ magicJS.http.get(myRequest).then(response => {
|
|
|
try {
|
|
|
const body = response.body;
|
|
|
if (body?.data?.cards) {
|
|
|
@@ -1265,6 +1265,7 @@ async function dynamic() {
|
|
|
} catch (e) {
|
|
|
magicJS.logger.error(JSON.stringify(e));
|
|
|
}
|
|
|
+ resolve();
|
|
|
}).catch(err => {
|
|
|
const msg = `获取首页视频异常\n${JSON.stringify(err)}`;
|
|
|
magicJS.logger.error(msg);
|