From 7f15cddb540497ee4adf556cd9fd78339d3450e6 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Wed, 20 Sep 2023 18:30:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E7=9A=84=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SyntaxCase/paramTest.vue | 1 + uni_modules/uts-advance/utssdk/app-android/index.uts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/SyntaxCase/paramTest.vue b/pages/SyntaxCase/paramTest.vue index a5476f9..5c33c26 100644 --- a/pages/SyntaxCase/paramTest.vue +++ b/pages/SyntaxCase/paramTest.vue @@ -47,6 +47,7 @@ }, returnArrayTest() { let ret = returnArray() + console.log( JSON.stringify(ret)) if ('["1","2","3"]' == JSON.stringify(ret)) { uni.showToast({ title: '测试通过' diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts index b6be203..8f50709 100644 --- a/uni_modules/uts-advance/utssdk/app-android/index.uts +++ b/uni_modules/uts-advance/utssdk/app-android/index.uts @@ -397,7 +397,8 @@ export type ParamOptions = { export function inputParam(option : ParamOptions) : boolean { let inputStr = JSON.stringify(option) - if ('{"array":[1,2,3],"title":"hello"}' == inputStr) { + console.log(inputStr) + if ('{"array":["1","2","3"],"title":"hello"}' == inputStr) { return true } return false @@ -439,6 +440,7 @@ export function logStrTest() { console.log("logStrTest 字符串打印测试") } + export function logFloatTest() { console.log(3.1415926) } -- GitLab