Skip to content

Commit

Permalink
Merge pull request #15882 from xiaoyan428820/main
Browse files Browse the repository at this point in the history
fix: [harmony-hybrid]open-api相关接口实现修改
  • Loading branch information
qican777 authored Jun 17, 2024
2 parents 5bb5bc4 + db4a968 commit 46e62d3
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 46e62d3

Please sign in to comment.