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;