From d6df2d25a599300fb108d08590fca4f69eeae347 Mon Sep 17 00:00:00 2001 From: enjoyeetime Date: Wed, 1 Mar 2023 09:42:12 +0800 Subject: [PATCH] update --- "\346\241\214\351\235\242\345\220\257\345\212\250.js" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/\346\241\214\351\235\242\345\220\257\345\212\250.js" "b/\346\241\214\351\235\242\345\220\257\345\212\250.js" index 8beafb1..7fcc585 100644 --- "a/\346\241\214\351\235\242\345\220\257\345\212\250.js" +++ "b/\346\241\214\351\235\242\345\220\257\345\212\250.js" @@ -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 }); // -- GitLab