Skip to content

Commit 46e62d3

Browse files
authored
Merge pull request #15882 from xiaoyan428820/main
fix: [harmony-hybrid]open-api相关接口实现修改
2 parents 5bb5bc4 + db4a968 commit 46e62d3

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/offMemoryWarning.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import Taro from '@tarojs/taro'
77
* @null_implementation
88
*/
99
export const offMemoryWarning: typeof Taro.offMemoryWarning = (_callback) => {
10-
10+
// 支持使用,但实现为空实现,不用业务做兼容
1111
}

packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/onMemoryWarning.ts

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

packages/taro-platform-harmony-hybrid/src/api/apis/open-api/soter/checkIsSoterEnrolledInDevice.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,14 @@ export const checkIsSoterEnrolledInDevice: typeof Taro.checkIsSoterEnrolledInDev
4242
)
4343
}
4444

45-
return new Promise<Taro.checkIsSoterEnrolledInDevice.SuccessCallbackResult>((resolve, reject) => {
46-
native.checkIsSupportSoterAuthentication({
47-
checkAuthMode: checkAuthMode,
48-
success: (res: any) => {
49-
handle.success(res, { resolve, reject })
50-
},
51-
fail: (err: any) => {
52-
handle.fail(err, { resolve, reject })
53-
},
54-
})
45+
native.checkIsSupportSoterAuthentication({
46+
checkAuthMode: checkAuthMode,
47+
success: (res: any) => {
48+
handle.success(res, { resolve, reject })
49+
},
50+
fail: (err: any) => {
51+
handle.fail(err, { resolve, reject })
52+
},
5553
})
5654
})
5755
}

0 commit comments

Comments
 (0)