Skip to content

Commit

Permalink
fix: 修复未经 promisify 处理,导致的 api 空指针报错问题 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
BboyZaki authored Aug 28, 2023
1 parent acf9fb3 commit f4f8cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-mini/src/alipay/apisToAlipay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
logger,
transformApis
} from '@morjs/runtime-base'
import { needPromisfiedApis } from './needPromisfiedApis'
import { needPromisfiedApis } from '../wechat/apis'

// changeToBuffer
const changeToBuffer = (str) => {
Expand Down
1 change: 1 addition & 0 deletions packages/runtime-mini/src/wechat/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const needPromisfiedApis = [
'getStorageInfo',
'getSystemInfo',
'getUserInfo',
'getUserProfile',
'getWeRunData',
'getWifiList',
'hideHomeButton',
Expand Down

0 comments on commit f4f8cae

Please sign in to comment.