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 48c5543c63305ddc922e4cc8b77187bea4c69bb7..1c530e48a7e243cf7561bfd3b138ac97767645a5 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;