From 3dc10fc01bc4843185507251344073467fca6684 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 09 三月 2021 17:34:17 +0800 Subject: [PATCH] 3 --- ThirdPartyIntegration/tuya/TYtest/TYtest/Tuyalib/Tuyalib.m | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ThirdPartyIntegration/tuya/TYtest/TYtest/Tuyalib/Tuyalib.m b/ThirdPartyIntegration/tuya/TYtest/TYtest/Tuyalib/Tuyalib.m index 269be64..172c94a 100644 --- a/ThirdPartyIntegration/tuya/TYtest/TYtest/Tuyalib/Tuyalib.m +++ b/ThirdPartyIntegration/tuya/TYtest/TYtest/Tuyalib/Tuyalib.m @@ -21,11 +21,14 @@ return sharedInstance; } - --(void) init { - +- (TuyaSmartRequest *)request { + if (!_request) { + _request = [[TuyaSmartRequest alloc] init]; + } + return _request; } + //寮�鍚皟璇曟ā寮� - (void) changeDebugMode:(BOOL)isDebug { -- Gitblit v1.8.0