From 94f0222818623c95bc0888bdef1b442a9693b3f6 Mon Sep 17 00:00:00 2001 From: bofeng Date: Fri, 18 Oct 2024 11:39:50 +0800 Subject: [PATCH] Fix the issue on the Alipay platform caused by incorrect type usage after my.request failure. --- platforms/alipay/wrapper/builtin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/alipay/wrapper/builtin.js b/platforms/alipay/wrapper/builtin.js index fe84f6d..3d67a33 100644 --- a/platforms/alipay/wrapper/builtin.js +++ b/platforms/alipay/wrapper/builtin.js @@ -2693,7 +2693,7 @@ var XMLHttpRequest = function (_EventTarget) { errorMessage = _res$errorMessage === undefined ? "" : _res$errorMessage; var data = res.data || ""; - if (data.includes("超时") || errorMessage.includes("超时")) { + if ((typeof data === "string" && data.includes("超时")) || errorMessage.includes("超时")) { _triggerEvent.call(this, 'timeout'); }