34 lines
1005 B
Objective-C
34 lines
1005 B
Objective-C
//
|
|
// YMMineResetPayPasswordPresenter.m
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2021/9/18.
|
|
//
|
|
|
|
#import "XPMineResetPayPasswordPresenter.h"
|
|
///Api
|
|
#import "Api+Mine.h"
|
|
///Tool
|
|
#import "AccountInfoStorage.h"
|
|
#import "DESEncrypt.h"
|
|
#import "YUMIConstant.h"
|
|
///P
|
|
#import "XPMineResetPayPasswordProtocol.h"
|
|
|
|
@implementation XPMineResetPayPasswordPresenter
|
|
|
|
/// 重置支付密码
|
|
/// @param password 支付密码
|
|
/// @param phone 手机号
|
|
/// @param veriftCode 验证码
|
|
- (void)resetPayPassword:(NSString *)password phone:(NSString *)phone veriftCode:(NSString *)veriftCode {
|
|
NSString * uid = [AccountInfoStorage instance].getUid;
|
|
NSString * ticket = [AccountInfoStorage instance].getTicket;
|
|
NSString * newpasswordDes = [DESEncrypt encryptUseDES:password key:KeyWithType(KeyType_PasswordEncode)];
|
|
[Api setPayPassword:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
[[self getView] resetPayPasswordSuccess];
|
|
}] newPasswd:newpasswordDes phone:phone code:veriftCode uid:uid ticket:ticket];
|
|
}
|
|
|
|
@end
|