From 796cf0f5801f38af4814de8aad4a6b23ab3ac968 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Mon, 24 Oct 2022 11:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC=E5=AD=97=E6=AE=B5=E4=B8=BAerCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-screen/utssdk/app-android/index.uts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/uni_modules/uni-screen/utssdk/app-android/index.uts b/uni_modules/uni-screen/utssdk/app-android/index.uts index 3ddae88..3306d9d 100644 --- a/uni_modules/uni-screen/utssdk/app-android/index.uts +++ b/uni_modules/uni-screen/utssdk/app-android/index.uts @@ -65,7 +65,7 @@ class ScreenFileObserver extends FileObserver { lastFileObserverTime = System.currentTimeMillis() let ret = { - code:1, + errCode:1, image:newPath } @@ -93,7 +93,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) { // 因权限缺失导致监听失败 let ret = { - code:-1 + errCode:-1 } callback(ret); return ; @@ -121,7 +121,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) { // 监听成功 let ret = { - code:0 + errCode:0 } callback(ret); @@ -140,10 +140,7 @@ export function offUserCaptureScreen(success: (res: any) => void) { } lastFileObserverTime = 0; - let ret = { - - } - success(ret); + success({}); } -- GitLab