diff --git a/common/js/http.js b/common/js/http.js index 483636e..df855fe 100644 --- a/common/js/http.js +++ b/common/js/http.js @@ -171,7 +171,7 @@ export default { fail: (res) => { if (res.errMsg && res.errMsg == 'request:fail url not in domain list') { uni.showToast({ - title: getLang().lang('http.domainNotInList', { url: Config.baseUrl }), + title: getLang().lang('http.domainNotInList', { url: Config.baseUrl, err: res.errMsg }), 'icon': 'none', duration: 10000 }); @@ -182,7 +182,7 @@ export default { complete: (res) => { if ((res.errMsg && res.errMsg != "request:ok") || (res.statusCode && [200, 500].indexOf(res.statusCode) == -1)) { uni.showToast({ - title: getLang().lang('http.requestFailed', { url: Config.baseUrl }), + title: getLang().lang('http.requestFailed', { url: Config.baseUrl, err: res.errMsg }), 'icon': 'none', duration: 10000 });