From c4bfec4d26409b8dff4086464ea52629e6b665f9 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Wed, 2 Jun 2021 15:19:45 +0800 Subject: [PATCH] =?UTF-8?q?init=20=E6=96=B9=E5=BC=8F=E6=96=B0=E5=A2=9Euser?= =?UTF-8?q?Id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOP_initialize.h | 12 +++++++----- ios/Classes/Api/MOP_initialize.m | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ios/Classes/Api/MOP_initialize.h b/ios/Classes/Api/MOP_initialize.h index 5aff9f6..b10862f 100644 --- a/ios/Classes/Api/MOP_initialize.h +++ b/ios/Classes/Api/MOP_initialize.h @@ -11,12 +11,14 @@ NS_ASSUME_NONNULL_BEGIN @interface MOP_initialize : MOPBaseApi -@property(nonatomic,copy)NSString* appkey; -@property(nonatomic,copy)NSString* secret; -@property(nonatomic,copy)NSString* apiServer; -@property(nonatomic,copy)NSString* apiPrefix; -@property(nonatomic,copy)NSString* cryptType; +@property (nonatomic, copy) NSString *appkey; +@property (nonatomic, copy) NSString *secret; +@property (nonatomic, copy) NSString *apiServer; +@property (nonatomic, copy) NSString *apiPrefix; +@property (nonatomic, copy) NSString *cryptType; +@property (nonatomic, copy) NSString *userId; @property (nonatomic, assign) BOOL disablePermission; + @end NS_ASSUME_NONNULL_END diff --git a/ios/Classes/Api/MOP_initialize.m b/ios/Classes/Api/MOP_initialize.m index 14f73ed..9d28e6a 100644 --- a/ios/Classes/Api/MOP_initialize.m +++ b/ios/Classes/Api/MOP_initialize.m @@ -34,6 +34,7 @@ { config.cryptType = FATApiCryptTypeMD5; } + config.userId = [self.userId copy]; NSLog(@"disablePermission:%d",self.disablePermission); config.disableAuthorize = self.disablePermission;