智慧宿舍系统小程序

This commit is contained in:
qianlile
2021-07-27 21:57:03 +08:00
parent 8b2c22efe2
commit b16621221e
1290 changed files with 56513 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
module.exports = api => (object, ...params) => new Promise((resolve, reject) => {
if (api) {
api.call(wx, { ...object, success: resolve, fail: reject }, ...params);
} else {
console.error('调用不支持的 API');
reject({ errCode: 'WXAPI_NOT_SUPPORTED' });
}
});