Skip to content

Commit fcdfc9d

Browse files
committed
添加注册渠道号
1 parent 50e04ae commit fcdfc9d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CodingForiPad/Request/COAccountRequest.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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

CodingForiPad/Request/COAccountRequest.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
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

0 commit comments

Comments
 (0)