diff --git a/YuMi/Modules/YMRoom/View/TreasureFairy/View/View/XPTreasureFairyTrialsContentView.m b/YuMi/Modules/YMRoom/View/TreasureFairy/View/View/XPTreasureFairyTrialsContentView.m index 22b019fe..5813fae5 100644 --- a/YuMi/Modules/YMRoom/View/TreasureFairy/View/View/XPTreasureFairyTrialsContentView.m +++ b/YuMi/Modules/YMRoom/View/TreasureFairy/View/View/XPTreasureFairyTrialsContentView.m @@ -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) { diff --git a/YuMi/Modules/YMTabbar/View/TabbarViewController.m b/YuMi/Modules/YMTabbar/View/TabbarViewController.m index 3022e6cc..73fff4bc 100644 --- a/YuMi/Modules/YMTabbar/View/TabbarViewController.m +++ b/YuMi/Modules/YMTabbar/View/TabbarViewController.m @@ -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]; }