提交 83fe7814 编写于 作者: AndroidLeaves's avatar AndroidLeaves

update

上级 3d696f11
......@@ -3,7 +3,7 @@
// icon-color: red; icon-glyph: user-astronaut;
/**
* Author:LSP
* Date:2022-12-11
* Date:2022-12-12
*/
// -------------------------------------------------------
// 是否是开发环境,配合手机端调试使用,正式发布设置为false
......@@ -556,7 +556,8 @@ class Widget extends BaseWidget {
const defaultHotArr = this.defaultPreference.hotban;
const cacheHotStr = this.useFileManager().readStringCache('hotban');
const hotbanArr = cacheHotStr ? JSON.parse(cacheHotStr) : defaultHotArr;
const index = this.carouselIndex('hotbanRandom', hotbanArr.length);
const index = this.carouselIndex('HotbanRandom', hotbanArr.length);
console.log(`provideWidget->index:${index}, ${hotbanArr.length}`);
const response = await this.loadHotBanRES(hotbanArr[index].link);
// 数据
const { hotTitle = '', logoUrl = '', linkArr = [], titleArr = [] } = response;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册