Commit c3e3d433bb5ec27bc2cca167eff36008d04a44ab

Authored by liushiyu
2 parents 58835df8 d9d38e27

Merge branch 'master' of http://bj.gitlab.cnlive.com/ios-team/CNLiveCommuntyModule

# Conflicts:
#	CNLiveCommuntyModule/Classes/ViewModel/CNLiveCommuntViewModel.m
CNLiveCommuntyModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveCommuntyModule'
11   - s.version = '0.1.1'
  11 + s.version = '0.1.3'
12 12 s.summary = 'A short description of CNLiveCommuntyModule.'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveCommuntyModule/Classes/View/CNLiveCommuntSignUpView.m
... ... @@ -671,9 +671,9 @@
671 671 __weak typeof(self) weakSelf = self;
672 672 if ([self.createModel.totalFee isNotBlank]
673 673 && [self.createModel.totalFee integerValue] > 0) {
674   - NSString * p = [NSString stringWithFormat:@"%ld",([self.amoutField.text integerValue]*100)];
  674 + NSString * p = [NSString stringWithFormat:@"%.0f",[weakSelf.amoutField.text doubleValue]*100];
675 675 [CNLiveCommuntViewModel requestWithCommuntyTotalFeeOrderMentOrderId:self.createModel.idStr totalFee:p CompleterBlock:^(NSString * _Nonnull payUrl) {
676   - NSString * p = [NSString stringWithFormat:@"%.2f",[self.amoutField.text floatValue]];
  676 + NSString * p = [NSString stringWithFormat:@"%.2f",[self.amoutField.text doubleValue]];
677 677 weakSelf.modalView = [CNLiveCommuntSignUpView showQrTipSuccessViewWithPrice:p PayUrl:payUrl CompleterBlock:^{
678 678 NSLog(@"移除监听通知");
679 679 [[NSNotificationCenter defaultCenter] removeObserver:weakSelf name:@"kIMAMSG_ScanPaySuccessNotification" object:nil];
... ... @@ -683,11 +683,11 @@
683 683 }];
684 684 }else{
685 685 [CNLiveCommuntSignUpView showAlertViewWithMessage:@"请仔细核对金额,确认后将不可修改" CompleterBlock:^{
686   - NSString * p = [NSString stringWithFormat:@"%ld",([weakSelf.amoutField.text integerValue]*100)];
  686 + NSString * p = [NSString stringWithFormat:@"%.0f",[weakSelf.amoutField.text doubleValue]*100];
687 687 weakSelf.amoutField.enabled = NO;
688 688 weakSelf.amoutField.textColor = UIColorHex(#c8c8c8);
689 689 [CNLiveCommuntViewModel requestWithCommuntyTotalFeeOrderMentOrderId:weakSelf.createModel.idStr totalFee:p CompleterBlock:^(NSString * _Nonnull payUrl) {
690   - NSString * p = [NSString stringWithFormat:@"%.2f",[self.amoutField.text floatValue]];
  690 + NSString * p = [NSString stringWithFormat:@"%.2f",[self.amoutField.text doubleValue]];
691 691 weakSelf.modalView = [CNLiveCommuntSignUpView showQrTipSuccessViewWithPrice:p PayUrl:payUrl CompleterBlock:^{
692 692 NSLog(@"移除监听通知");
693 693 [[NSNotificationCenter defaultCenter] removeObserver:weakSelf name:@"kIMAMSG_ScanPaySuccessNotification" object:nil];
... ... @@ -723,7 +723,7 @@
723 723 }
724 724 __weak typeof(self) weakSelf = self;
725 725 [CNLiveCommuntSignUpView showAlertViewWithMessage:@"请仔细核对金额,确认后将不可修改" CompleterBlock:^{
726   - NSString * p = [NSString stringWithFormat:@"%ld",([self.amoutField.text integerValue]*100)];
  726 + NSString * p = [NSString stringWithFormat:@"%.0f",[weakSelf.amoutField.text doubleValue]*100];
727 727 weakSelf.amoutField.enabled = NO;
728 728 weakSelf.amoutField.textColor = UIColorHex(#c8c8c8);
729 729 [CNLiveCommuntViewModel requestWithCommuntyTotalFeeOrderMentOrderId:weakSelf.createModel.idStr totalFee:p CompleterBlock:^(NSString * _Nonnull payUrl) {
... ...