提交 796cf0f5 编写于 作者: 杜庆泉's avatar 杜庆泉

修改 返回值字段为erCode

上级 553963c5
...@@ -65,7 +65,7 @@ class ScreenFileObserver extends FileObserver { ...@@ -65,7 +65,7 @@ class ScreenFileObserver extends FileObserver {
lastFileObserverTime = System.currentTimeMillis() lastFileObserverTime = System.currentTimeMillis()
let ret = { let ret = {
code:1, errCode:1,
image:newPath image:newPath
} }
...@@ -93,7 +93,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) { ...@@ -93,7 +93,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) {
// 因权限缺失导致监听失败 // 因权限缺失导致监听失败
let ret = { let ret = {
code:-1 errCode:-1
} }
callback(ret); callback(ret);
return ; return ;
...@@ -121,7 +121,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) { ...@@ -121,7 +121,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) {
// 监听成功 // 监听成功
let ret = { let ret = {
code:0 errCode:0
} }
callback(ret); callback(ret);
...@@ -140,10 +140,7 @@ export function offUserCaptureScreen(success: (res: any) => void) { ...@@ -140,10 +140,7 @@ export function offUserCaptureScreen(success: (res: any) => void) {
} }
lastFileObserverTime = 0; lastFileObserverTime = 0;
let ret = { success({});
}
success(ret);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册