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

update

上级 4c2a0bd2
......@@ -759,13 +759,14 @@ class BaseWidget {
if (logable) {
console.log(`🤖 Get请求响应:${JSON.stringify(data)}`);
}
} catch (e) {
console.error(`🚫 Get请求失败:${e}${url}`);
this.ERRS.push(e);
} catch (error) {
console.error(`🚫 Get请求失败:${error}${url}`);
this.ERRS.push(error);
if (!config.runsInApp) {
await this.notify('网络请求失败', `🚫 ${e}`);
await this.notify('网络请求失败', `🚫 ${error}`);
} else {
throw e
await this.generateAlert('🚫 GET请求出错', `${error}`, ['确定']);
throw error
}
}
this.logDivider();
......@@ -848,6 +849,7 @@ class BaseWidget {
if (!config.runsInApp) {
await this.notify('网络请求失败', `🚫 ${error}`);
} else {
await this.generateAlert('🚫 POST请求出错', `${error}`, ['确定']);
throw error
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册