修复bug

This commit is contained in:
liyuhua
2023-10-31 18:02:12 +08:00
parent e5ae6d3157
commit edff4262a6
14 changed files with 68 additions and 18 deletions

View File

@@ -17,6 +17,7 @@
#import "RoomInfoModel.h"
#import "XPIAPRechargeViewController.h"
#import "XCCurrentVCStackManager.h"
#import "ClientConfig.h"
@interface PIRoomSendRedPacketItemVC ()<PIRedPacketChooseTypeViewDelegate,XPRoomRedPacketPwdViewDelegate>
///host
@@ -383,7 +384,11 @@
}
- (UILabel *)tipsView{
if(!_tipsView){
_tipsView = [UILabel labelInitWithText:YMLocalizedString(@"PIRoomSendRedPacketItemVC6") font:kFontRegular(12) textColor:UIColorFromRGB(0x94959C)];
CGFloat time = [ClientConfig shareConfig].configInfo.redEnvelopeConfig.endSecond / 3600.0;
NSString *timeStr = [NSString stringWithFormat:@"%.1f",time];
timeStr = [timeStr stringByReplacingOccurrencesOfString:@".0" withString:@""];
_tipsView = [UILabel labelInitWithText:[NSString stringWithFormat:YMLocalizedString(@"PIRoomSendRedPacketItemVC6"),timeStr] font:kFontRegular(12) textColor:UIColorFromRGB(0x94959C)];
}
return _tipsView;
}