修复bug
This commit is contained in:
@@ -272,17 +272,16 @@
|
||||
|
||||
}
|
||||
-(void)dealWithData:(BaseModel * _Nullable)data{
|
||||
NSString * animtionName = @"https://image.hfighting.com/fenjie1.mp4";
|
||||
NSString * animtionName = @"https://image.hfighting.com/treasure_fairy_trials_middle.mp4";
|
||||
|
||||
if (self.isHigh) {
|
||||
animtionName = @"https://image.hfighting.com/treasure_fairy_trials_high.mp4";
|
||||
}
|
||||
if (!self.trialsView.superview) {
|
||||
[self.trialsBgImageView insertSubview:self.trialsView atIndex:0];
|
||||
[self.trialsView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.trialsBgImageView).mas_offset(5);
|
||||
make.left.mas_equalTo(self.trialsBgImageView).mas_offset(-30);
|
||||
make.right.mas_equalTo(self.trialsBgImageView).mas_offset(30);;
|
||||
make.bottom.equalTo(self.trialsBgImageView).mas_equalTo(130);
|
||||
make.edges.mas_equalTo(self.trialsBgImageView);
|
||||
|
||||
}];
|
||||
}
|
||||
NSString *baseFileName = @"/GiftMp4";
|
||||
@@ -290,7 +289,7 @@
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
if ([fileManager fileExistsAtPath:filePath]){
|
||||
[self.trialsView setMute:YES];
|
||||
[self.trialsView playHWDMP4:filePath repeatCount:10 delegate:self];
|
||||
[self.trialsView playHWDMP4:filePath repeatCount:1 delegate:self];
|
||||
|
||||
}else{
|
||||
[self.vapParser parseWithURL:filePath completionBlock:^(NSString * _Nullable videoUrl) {
|
||||
|
@@ -369,7 +369,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
[self dealWithGiftListWithUrl:url fileName:url isSvga:YES];
|
||||
}
|
||||
///夺宝精灵动效
|
||||
NSArray *elfList = @[@"https://image.hfighting.com/fenjie1.mp4",@"https://image.hfighting.com/treasure_fairy_ten.mp4",@"https://image.hfighting.com/treasure_fairy_trials_high.mp4",@"https://image.hfighting.com/treasure_fairy_one.mp4"];
|
||||
NSArray *elfList = @[@"https://image.hfighting.com/treasure_fairy_trials_middle.mp4",@"https://image.hfighting.com/treasure_fairy_ten.mp4",@"https://image.hfighting.com/treasure_fairy_trials_high.mp4",@"https://image.hfighting.com/treasure_fairy_one.mp4"];
|
||||
for (NSString *url in elfList) {
|
||||
[self dealWithGiftListWithUrl:url fileName:url isSvga:NO];
|
||||
}
|
||||
|
Reference in New Issue
Block a user