From 1c4d58e01849fe4910e2a5d47d4fc3ae420f9d11 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 1 Sep 2022 12:32:43 +0800 Subject: [PATCH] remove unuse log --- .../utssdk/app-android/index.uts | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/uni_modules/uts-helloworld/utssdk/app-android/index.uts b/uni_modules/uts-helloworld/utssdk/app-android/index.uts index 309463a..e668100 100644 --- a/uni_modules/uts-helloworld/utssdk/app-android/index.uts +++ b/uni_modules/uts-helloworld/utssdk/app-android/index.uts @@ -1,14 +1,14 @@ type inputJSON = { - inputText:string, - errCode:number + inputText: string, + errCode: number } type JsonParamOptions = { - input:inputJSON; - success: (res: string) => void; - fail: (res: string) => void; - complete: (res: string) => void; + input: inputJSON; + success: (res: string) => void; + fail: (res: string) => void; + complete: (res: string) => void; }; @@ -16,24 +16,22 @@ type JsonParamOptions = { * 导出一个带callback的同步方法 * @param opts */ -export function callWithoutParam(success:() => void) { - success(); - console.log("hello ","at uniModule/a/b.js line 67"); - return { name: "doSthWithCallback" }; +export function callWithoutParam(success: () => void) { + success(); + return { name: "doSthWithCallback" }; } - -export function callWithStringParam(input:string,success: (res: string) => void) { - success(input); - return { name: "doSthWithCallback" }; + +export function callWithStringParam(input: string, success: (res: string) => void) { + success(input); + return { name: "doSthWithCallback" }; } export function callWithJSONParam(opts: JsonParamOptions) { opts.input.errCode = 10; opts.success(opts.input); - - return { name: "doSthWithCallback" }; + return { name: "doSthWithCallback" }; } -- GitLab