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

update

上级 44c6f82d
......@@ -3,12 +3,12 @@
// icon-color: red; icon-glyph: user-astronaut;
/**
* Author:LSP
* Date:2023-02-04
* Date:2023-03-01
*/
// -------------------------------------------------------
// 是否是开发环境,配合手机端调试使用,正式发布设置为false
const isDev = false;
const dependencyLSP = '20230204';
const dependencyLSP = '20230228';
console.log(`当前环境 👉👉👉👉👉 ${isDev ? 'DEV' : 'RELEASE'}`);
console.log(`----------------------------------------`);
// 分支
......@@ -597,7 +597,7 @@ class Widget extends BaseWidget {
const currDate = new Date();
let dateStr = this.getDateStr(currDate, 'yyyyMMdd');
let holidayJsonData = this.useFileManager().readJSONCache(datePre + dateStr);
if (JSON.stringify(holidayJsonData) == '{}' || holidayJsonData?.length == 0) {
if (JSON.stringify(holidayJsonData) == '{}' || holidayJsonData?.length == 0 || holidayJsonData.code != 0) {
url = 'https://api.apihubs.cn/holiday/get?field=date,workday,holiday_legal,holiday_today,holiday_recess,holiday,weekend&order_by=1&cn=1&size=31';
holidayJsonData = await this.httpGet(url, { useCache: false, dataSuccess: (res) => res?.code == 0 });
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册