Skip to content

Commit a7058df

Browse files
committed
update
1 parent 7df04fd commit a7058df

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

MYNetWorkingDemo/NetWorking/MYApiRequestBaseObject.m

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ @interface MYApiRequestBaseObject ()
1212

1313
@property (nonatomic, assign) NSInteger timeout;
1414
@property (nonatomic, copy) NSString *urlString;
15-
@property (nonatomic, copy) NSString *token;
16-
@property (nonatomic, copy) NSString *machine_type;
15+
@property (nonatomic, copy) NSString *token;//请求的基本参数,可自行更改
16+
@property (nonatomic, copy) NSString *machine_type;//请求的基本参数,可自行更改
1717
@property (nonatomic, assign) MY_APIREQUEST_TYPE requestType;
1818
@property (nonatomic, copy) NSString *requestTag;
1919

@@ -46,17 +46,15 @@ - (instancetype)init
4646
{
4747
if (self = [super init]) {
4848

49-
// if (User_is_login) {
50-
// _token = [User sharedUser].userInfo.token;
51-
// }
52-
_machine_type = @"ios";
49+
_token = @"获取的本地token";
50+
_machine_type = @"iOS";
5351
}
5452
return self;
5553
}
5654

57-
55+
//忽略
5856
+ (NSArray *)modelPropertyBlacklist {
59-
return @[@"urlString", @"requestType",@"baseUrl",@"timeout"];
57+
return @[@"urlString", @"requestType",@"baseUrl",@"timeout",@"localCache",@"task"];
6058
}
6159

6260
- (NSString *)description

0 commit comments

Comments
 (0)