hifun-tools 1.4.18 → 1.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/init/index.js +3 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/init/index.js
CHANGED
|
@@ -180,12 +180,10 @@ class InitCls {
|
|
|
180
180
|
log("停止每秒日志");
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
|
|
184
|
-
const retrySchedule = [3]; // 秒(绝对时间点)
|
|
183
|
+
const retrySchedule = [5, 15, 30]; // 秒(绝对时间点)
|
|
185
184
|
const tryRequest = async (label) => {
|
|
186
185
|
log(`${label}:开始请求`);
|
|
187
186
|
try {
|
|
188
|
-
loadingText("网络环境异常,正在重连...");
|
|
189
187
|
await getOptimalDecodedString([this.getBaseUrl()]);
|
|
190
188
|
success = true;
|
|
191
189
|
closeLoadingText();
|
|
@@ -195,6 +193,7 @@ class InitCls {
|
|
|
195
193
|
return true;
|
|
196
194
|
}
|
|
197
195
|
catch (err) {
|
|
196
|
+
loadingText("网络波动,正在优选线路...");
|
|
198
197
|
log(`${label}:请求失败 ❌`);
|
|
199
198
|
return false;
|
|
200
199
|
}
|
|
@@ -225,7 +224,7 @@ class InitCls {
|
|
|
225
224
|
Cache("ErrorDomainUrl", uniq([...this.ErrorDomainUrl, nowLineGroup]));
|
|
226
225
|
rewardMsg({
|
|
227
226
|
title: "提示",
|
|
228
|
-
text: "
|
|
227
|
+
text: "优选线路超时,刷新页面以重置" + (nowLineGroup ? "" : "..."),
|
|
229
228
|
onSubmit() {
|
|
230
229
|
location.reload();
|
|
231
230
|
},
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.4.
|
|
1
|
+
export declare const VERSION = "1.4.19";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.4.
|
|
1
|
+
export const VERSION = "1.4.19";
|