新建了BaseObject 模型的基类 以及模型相互转换的方法
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
- (void)phoneQuickLogin:(NSString *)accessToken token:(NSString *)token {
|
||||
[Api phoneQuickLogin:[self createHttpCompletion:^(BaseModel *data) {
|
||||
[[AccountInfoStorage instance] saveAccountInfo:[AccountModel yy_modelWithDictionary:data.data]];
|
||||
[[AccountInfoStorage instance] saveAccountInfo:[AccountModel modelWithDictionary:data.data]];
|
||||
[[self getView] phoneQuickLoginSuccess];
|
||||
} fail:^(NSInteger code, NSString * _Nullable msg) {
|
||||
// todo fail
|
||||
|
Reference in New Issue
Block a user