File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2121@property (nonatomic , copy ) COFormParameters NSString *email;
2222@property (nonatomic , copy ) COFormParameters NSString *globalKey;
2323@property (nonatomic , copy ) COFormParameters NSString *jCaptcha;
24+ @property (nonatomic , copy , readonly ) COFormParameters NSString *channel;
2425
2526@end
2627
Original file line number Diff line number Diff line change 66// Copyright (c) 2015年 coding. All rights reserved.
77//
88
9+ #define kRegisterChannel @" coding-ipad"
10+
911#import " COAccountRequest.h"
1012
1113@implementation COAccountCheckRequest
@@ -25,6 +27,15 @@ - (NSDictionary *)parametersMap
2527
2628@implementation COAccountRegisterRequest
2729
30+ - (instancetype )init
31+ {
32+ self = [super init ];
33+ if (self) {
34+ _channel = kRegisterChannel ;
35+ }
36+ return self;
37+ }
38+
2839- (void )prepareForRequest
2940{
3041 self.path = @" /account/register" ;
@@ -35,6 +46,7 @@ - (NSDictionary *)parametersMap
3546 @" email" : @" email" ,
3647 @" globalKey" : @" global_key" ,
3748 @" jCaptcha" : @" j_captcha" ,
49+ @" channel" : @" channel" ,
3850 };
3951}
4052
You can’t perform that action at this time.
0 commit comments