init 方式新增userId
parent
081c9b82f8
commit
c4bfec4d26
|
@ -11,12 +11,14 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@interface MOP_initialize : MOPBaseApi
|
@interface MOP_initialize : MOPBaseApi
|
||||||
|
|
||||||
@property(nonatomic,copy)NSString* appkey;
|
@property (nonatomic, copy) NSString *appkey;
|
||||||
@property(nonatomic,copy)NSString* secret;
|
@property (nonatomic, copy) NSString *secret;
|
||||||
@property(nonatomic,copy)NSString* apiServer;
|
@property (nonatomic, copy) NSString *apiServer;
|
||||||
@property(nonatomic,copy)NSString* apiPrefix;
|
@property (nonatomic, copy) NSString *apiPrefix;
|
||||||
@property(nonatomic,copy)NSString* cryptType;
|
@property (nonatomic, copy) NSString *cryptType;
|
||||||
|
@property (nonatomic, copy) NSString *userId;
|
||||||
@property (nonatomic, assign) BOOL disablePermission;
|
@property (nonatomic, assign) BOOL disablePermission;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
{
|
{
|
||||||
config.cryptType = FATApiCryptTypeMD5;
|
config.cryptType = FATApiCryptTypeMD5;
|
||||||
}
|
}
|
||||||
|
config.userId = [self.userId copy];
|
||||||
|
|
||||||
NSLog(@"disablePermission:%d",self.disablePermission);
|
NSLog(@"disablePermission:%d",self.disablePermission);
|
||||||
config.disableAuthorize = self.disablePermission;
|
config.disableAuthorize = self.disablePermission;
|
||||||
|
|
Loading…
Reference in New Issue