Commit b52e33a1 authored by AvatarC's avatar AvatarC

Merge branch 'master' of http://121.42.32.57/root/vanke into master_01

Conflicts:
	vanke/Info.plist
parents 520ecbd7 a5fbccc5
...@@ -21,7 +21,11 @@ ...@@ -21,7 +21,11 @@
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<<<<<<< HEAD
<string>1.0.6</string> <string>1.0.6</string>
=======
<string>1.0.8</string>
>>>>>>> a5fbccc597e57fff22534cbca9b672a3fa39d8b8
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
......
...@@ -37,8 +37,10 @@ ...@@ -37,8 +37,10 @@
} }
if ([[VankeCommonModel sharedInstance] curUserIsTenant]) { if ([[VankeCommonModel sharedInstance] curUserIsTenant]) {
User *curUser = [[VankeCommonModel sharedInstance] currentUser]; LoginResponseData *loginData = [[VankeCommonModel sharedInstance] getLoginInfo];
request.PARAM(@"tenantEquals", curUser.code); if (nil != loginData.tenant) {
request.PARAM(@"tenantEquals", loginData.tenant.uuid);
}
} }
request.TIMEOUT(10); request.TIMEOUT(10);
......
...@@ -23,6 +23,18 @@ ...@@ -23,6 +23,18 @@
@end @end
/** uuid code name */
@interface UCN: BeeActiveObject
// 标识
@property (nonatomic, strong) NSString *uuid;
// 代码
@property (nonatomic, strong) NSString *code;
// 名称
@property (nonatomic, strong) NSString *name;
@end
/** 用户 */ /** 用户 */
@interface User: BeeActiveObject @interface User: BeeActiveObject
...@@ -96,6 +108,9 @@ extern NSString *const USER_POSITION_TENANT; // 用户职位: 商户用户 ...@@ -96,6 +108,9 @@ extern NSString *const USER_POSITION_TENANT; // 用户职位: 商户用户
// 职位 // 职位
@property (nonatomic, strong) NSString *position; @property (nonatomic, strong) NSString *position;
// 商铺
@property (nonatomic, strong) UCN *tenant;
-(User*) getUser; -(User*) getUser;
-(Enterpirse*) getEnterprise; -(Enterpirse*) getEnterprise;
......
...@@ -60,6 +60,12 @@ ...@@ -60,6 +60,12 @@
@end @end
#pragma mark UCN
@implementation UCN
@synthesize uuid;
@synthesize code;
@synthesize name;
@end
#pragma mark User #pragma mark User
@implementation User @implementation User
...@@ -112,6 +118,7 @@ NSString *const USER_POSITION_TENANT = @"tenant"; // 用户职位: 商户用 ...@@ -112,6 +118,7 @@ NSString *const USER_POSITION_TENANT = @"tenant"; // 用户职位: 商户用
@synthesize authenticode; @synthesize authenticode;
@synthesize authorizedOrgs; @synthesize authorizedOrgs;
@synthesize position; @synthesize position;
@synthesize tenant;
CONVERT_PROPERTY_CLASS(authorizedOrgs, AuthorizedOrg) CONVERT_PROPERTY_CLASS(authorizedOrgs, AuthorizedOrg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment