From 743fdff68d03f8679f06b4e711448412ac65d65f Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sun, 10 May 2026 11:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20OtaFeature=20=E7=9A=84=20o?= =?UTF-8?q?taFunc=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swift importer 的 omit-needless-words 规则把 Obj-C selector 段 `withEntityM:` 简化成 `with:`(因为后缀 EntityM 与参数类型 JL_EntityM 重复)。 Co-Authored-By: Claude Opus 4.7 (1M context) --- .../device_jieli/ios/Classes/Feature/OtaFeature.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/local_plugins/device_jieli/ios/Classes/Feature/OtaFeature.swift b/local_plugins/device_jieli/ios/Classes/Feature/OtaFeature.swift index 0c124c506..ceec7f3d0 100644 --- a/local_plugins/device_jieli/ios/Classes/Feature/OtaFeature.swift +++ b/local_plugins/device_jieli/ios/Classes/Feature/OtaFeature.swift @@ -52,8 +52,11 @@ class OtaFeature { let cb: JL_OTA_RT = { [weak self] result, progress in self?.onOtaCallback(result: result, progress: progress) } + // 注意 label:Obj-C selector `otaFuncWithEntityM:withFilePath:Result:` + // 经 Swift importer 的 omit-needless-words 规则把 `EntityM` 去掉(与 + // 参数类型 JL_EntityM 尾部重复),第一个 label 变成 `with:`。 server.bleMultiple.otaFunc( - withEntityM: entity, + with: entity, withFilePath: firmwareFilePath, result: cb )