35 lines
1.0 KiB
Mathematica
35 lines
1.0 KiB
Mathematica
![]() |
//
|
||
|
// YMMineModifPayPwdPresenter.m
|
||
|
// YUMI
|
||
|
//
|
||
|
// Created by YUMI on 2021/9/18.
|
||
|
//
|
||
|
|
||
|
#import "XPMineModifPayPwdPresenter.h"
|
||
|
#import "Api+Mine.h"
|
||
|
///Tool
|
||
|
#import "DESEncrypt.h"
|
||
|
#import "AccountInfoStorage.h"
|
||
|
#import "YUMIConstant.h"
|
||
|
///P
|
||
|
#import "XPMineModifPayProtocol.h"
|
||
|
|
||
|
@implementation XPMineModifPayPwdPresenter
|
||
|
|
||
|
|
||
|
/// 修改支付密码
|
||
|
/// @param oldPasswd 旧的密码
|
||
|
/// @param newPasswd 新的密码
|
||
|
- (void)modifyPaymentPasswordWitholdPassword:(NSString *)oldPasswd
|
||
|
newPassword:(NSString *)newPasswd {
|
||
|
NSString * uid = [AccountInfoStorage instance].getUid;
|
||
|
NSString * ticket = [AccountInfoStorage instance].getTicket;
|
||
|
NSString * newpasswordDes = [DESEncrypt encryptUseDES:newPasswd key:KeyWithType(KeyType_PasswordEncode)];
|
||
|
NSString * oldpasswordDes = [DESEncrypt encryptUseDES:oldPasswd key:KeyWithType(KeyType_PasswordEncode)];
|
||
|
[Api modifPayPassword:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||
|
[[self getView] modifPayPasswordSuccess];
|
||
|
}] newPasswd:newpasswordDes oldPasswd:oldpasswordDes uid:uid ticket:ticket];
|
||
|
}
|
||
|
|
||
|
@end
|