diff --git a/platforms/minigame/platforms/alipay/wrapper/builtin.js b/platforms/minigame/platforms/alipay/wrapper/builtin.js index 0255f8e628a..0f6031d3bc3 100644 --- a/platforms/minigame/platforms/alipay/wrapper/builtin.js +++ b/platforms/minigame/platforms/alipay/wrapper/builtin.js @@ -1684,7 +1684,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(_this2, 'timeout'); }