Skip to content

Commit

Permalink
Merge pull request #15883 from xiaoyan428820/4.x
Browse files Browse the repository at this point in the history
fix: [harmony-hybrid]open-api相关接口实现修改
  • Loading branch information
qican777 authored Jun 13, 2024
2 parents 29f3531 + 9f1bfaf commit b424e2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import Taro from '@tarojs/taro'
* @null_implementation
*/
export const offMemoryWarning: typeof Taro.offMemoryWarning = (_callback) => {

// 支持使用,但实现为空实现,不用业务做兼容
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import Taro from '@tarojs/taro'
* @null_implementation
*/
export const onMemoryWarning: typeof Taro.onMemoryWarning = (_callback) => {

// 支持使用,但实现为空实现,不用业务做兼容
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,14 @@ export const checkIsSoterEnrolledInDevice: typeof Taro.checkIsSoterEnrolledInDev
)
}

return new Promise<Taro.checkIsSoterEnrolledInDevice.SuccessCallbackResult>((resolve, reject) => {
native.checkIsSupportSoterAuthentication({
checkAuthMode: checkAuthMode,
success: (res: any) => {
handle.success(res, { resolve, reject })
},
fail: (err: any) => {
handle.fail(err, { resolve, reject })
},
})
native.checkIsSupportSoterAuthentication({
checkAuthMode: checkAuthMode,
success: (res: any) => {
handle.success(res, { resolve, reject })
},
fail: (err: any) => {
handle.fail(err, { resolve, reject })
},
})
})
}

0 comments on commit b424e2d

Please sign in to comment.