From 90947b4822b60a49735525b334e1f75fa2c70ce1 Mon Sep 17 00:00:00 2001 From: m0_75226990 Date: Fri, 31 May 2024 19:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4UTSiOS=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-platform-api/utssdk/app-ios/index.uts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uni_modules/uts-platform-api/utssdk/app-ios/index.uts b/uni_modules/uts-platform-api/utssdk/app-ios/index.uts index 48c5543..1c530e4 100644 --- a/uni_modules/uts-platform-api/utssdk/app-ios/index.uts +++ b/uni_modules/uts-platform-api/utssdk/app-ios/index.uts @@ -397,10 +397,10 @@ function convertBoolTest(): UTSiOSTestResult { /* 将数据转换为 NSNumber */ function convertNumberTest(): UTSiOSTestResult { - let ret: NSNumber = UTSiOS.convertNumber(1000) - let res: UTSiOSTestResult = { + let ret: NSNumber | null = UTSiOS.convertNumber(1000) + let res: UTSiOSTestResult = { key: "1000 转成number", - value: `${ret.intValue}`, + value: `${ret?.intValue}`, passed: true } return res; -- GitLab