{"action":"created","issue":{"url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/181","labels_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/181/comments","events_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/181/events","html_url":"https://github.com/CoderMJLee/MJExtension/issues/181","id":102993271,"number":181,"title":"模型中的+ (NSDictionary *)replacedKeyFromPropertyName;这个方法没有用?","user":{"login":"lcjingdi","id":8192959,"avatar_url":"https://avatars.githubusercontent.com/u/8192959?v=3","gravatar_id":"","url":"https://api.github.com/users/lcjingdi","html_url":"https://github.com/lcjingdi","followers_url":"https://api.github.com/users/lcjingdi/followers","following_url":"https://api.github.com/users/lcjingdi/following{/other_user}","gists_url":"https://api.github.com/users/lcjingdi/gists{/gist_id}","starred_url":"https://api.github.com/users/lcjingdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcjingdi/subscriptions","organizations_url":"https://api.github.com/users/lcjingdi/orgs","repos_url":"https://api.github.com/users/lcjingdi/repos","events_url":"https://api.github.com/users/lcjingdi/events{/privacy}","received_events_url":"https://api.github.com/users/lcjingdi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-25T10:11:04Z","updated_at":"2015-08-25T13:58:09Z","closed_at":null,"body":"传参数给服务器的时候需要传newPassword,但是报错,需要转换,但是貌似没有转换成功\r\n```objective-c\r\n// 1. 创建模型\r\n-->ChangePasswordParams.h<--\r\n#import <Foundation/Foundation.h>\r\n#import <MJExtension.h>\r\n@interface ChangePasswordParams : NSObject\r\n@property (nonatomic,strong) NSString *old;\r\n@property (nonatomic,strong) NSString *news;\r\n@end\r\n// 2. 重写+ (NSDictionary *)replacedKeyFromPropertyName;这个方法\r\n--> ChangePasswordParams.m<--\r\n+ (NSDictionary *)replacedKeyFromPropertyName {\r\n    return @{@\"news\":@\"newPassword\"};\r\n}\r\n// 3. 使用\r\nChangePasswordParams *params = [[ChangePasswordParams alloc] init];\r\n    params.old = self.oldPassword.text;\r\n    params.news = self.newsPassword.text;\r\n\r\n---------------------------------------------------------------------------------------------------------------------------------------\r\n发送post请求 params.keyValues 转出的是\r\n    dictM[@\"old\"] = @\"mm123456\";\r\n    dictM[@\"news\"] = @\"mm123456\";\r\n---------------------------------------------------------------------------------------------------------------------------------------\r\n希望转出的是\r\n    dictM[@\"old\"] = @\"mm123456\";\r\n    dictM[@\"newPassword\"] = @\"mm123456\";\r\n--------------------------------------------------------------------------------------------------------------------------------------\r\n```"},"comment":{"url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/comments/134594282","html_url":"https://github.com/CoderMJLee/MJExtension/issues/181#issuecomment-134594282","issue_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/181","id":134594282,"user":{"login":"lcjingdi","id":8192959,"avatar_url":"https://avatars.githubusercontent.com/u/8192959?v=3","gravatar_id":"","url":"https://api.github.com/users/lcjingdi","html_url":"https://github.com/lcjingdi","followers_url":"https://api.github.com/users/lcjingdi/followers","following_url":"https://api.github.com/users/lcjingdi/following{/other_user}","gists_url":"https://api.github.com/users/lcjingdi/gists{/gist_id}","starred_url":"https://api.github.com/users/lcjingdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcjingdi/subscriptions","organizations_url":"https://api.github.com/users/lcjingdi/orgs","repos_url":"https://api.github.com/users/lcjingdi/repos","events_url":"https://api.github.com/users/lcjingdi/events{/privacy}","received_events_url":"https://api.github.com/users/lcjingdi/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T13:58:09Z","updated_at":"2015-08-25T13:58:09Z","body":"Think you ~ Solved the problem"}}