Ai
1 Star 7 Fork 2

程序员阿鑫/基于IOS短信接码平台

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uni.promisify.adaptor.js 309 Bytes
一键复制 编辑 原始数据 按行查看 历史
程序员阿鑫 提交于 2024-11-11 17:19 +08:00 . 项目第一代版本
uni.addInterceptor({
returnValue (res) {
if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
return res;
}
return new Promise((resolve, reject) => {
res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
});
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cxyax/ios-message.git
git@gitee.com:cxyax/ios-message.git
cxyax
ios-message
基于IOS短信接码平台
master

搜索帮助