From da1f62d39c6386b98545d2ac7c069420203a3437 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 11 七月 2021 22:43:08 +0800 Subject: [PATCH] 2021-07-11 --- src/tabviews/custom/index.jsx | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index e2d8388..01be5f2 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -339,7 +339,7 @@ }) Api.directRequest(url, setting.method, param, setting.cross).then(res => { - if (typeof(res) !== 'object' || Array.isArray(res)) { + if (typeof(res) !== 'object') { let error = '鏈煡鐨勮繑鍥炵粨鏋滐紒' if (typeof(res) === 'string') { @@ -354,6 +354,9 @@ this.customCallbackRequest(_result, setting, inters) } else { + if (Array.isArray(res)) { + res = { data: res } + } res.mk_api_key = mkey this.customCallbackRequest(res, setting, inters) } -- Gitblit v1.8.0