From ea1ce7fa5367c30ab2a1255759371e1135f2331c Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 23 九月 2025 15:01:45 +0800
Subject: [PATCH] 优化

---
 h5/uni.promisify.adaptor.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/h5/uni.promisify.adaptor.js b/h5/uni.promisify.adaptor.js
index 47fbce1..5fec4f3 100644
--- a/h5/uni.promisify.adaptor.js
+++ b/h5/uni.promisify.adaptor.js
@@ -4,7 +4,10 @@
       return res;
     }
     return new Promise((resolve, reject) => {
-      res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
+      res.then((res) => {
+        if (!res) return resolve(res) 
+        return res[0] ? reject(res[0]) : resolve(res[1])
+      });
     });
   },
 });
\ No newline at end of file

--
Gitblit v1.9.3