diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/offMemoryWarning.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/offMemoryWarning.ts index e03304194f0b..8c30bc8f2d87 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/offMemoryWarning.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/offMemoryWarning.ts @@ -7,5 +7,5 @@ import Taro from '@tarojs/taro' * @null_implementation */ export const offMemoryWarning: typeof Taro.offMemoryWarning = (_callback) => { - + // 支持使用,但实现为空实现,不用业务做兼容 } diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/onMemoryWarning.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/onMemoryWarning.ts index 3fe3f5d3dc9d..ffd000df9648 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/onMemoryWarning.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/device/memory/onMemoryWarning.ts @@ -7,5 +7,5 @@ import Taro from '@tarojs/taro' * @null_implementation */ export const onMemoryWarning: typeof Taro.onMemoryWarning = (_callback) => { - + // 支持使用,但实现为空实现,不用业务做兼容 } diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/open-api/soter/checkIsSoterEnrolledInDevice.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/open-api/soter/checkIsSoterEnrolledInDevice.ts index 105f79c2f9b2..75c7db2f8776 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/open-api/soter/checkIsSoterEnrolledInDevice.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/open-api/soter/checkIsSoterEnrolledInDevice.ts @@ -42,16 +42,14 @@ export const checkIsSoterEnrolledInDevice: typeof Taro.checkIsSoterEnrolledInDev ) } - return new Promise((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 }) + }, }) }) }