修复bug

This commit is contained in:
liyuhua
2024-06-04 15:47:22 +08:00
parent b990f01a6e
commit 6a5f5b3001
25 changed files with 122 additions and 17 deletions

View File

@@ -12764,7 +12764,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 20.20.21;
MARKETING_VERSION = 20.20.22;
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -12802,7 +12802,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 20.20.21;
MARKETING_VERSION = 20.20.22;
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ms_room_game_victory_top_fail_icon_ar@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ms_room_game_victory_top_fail_icon_ar@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ms_room_game_victory_top_icon_ar@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ms_room_game_victory_top_icon_ar@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ms_room_game_victory_top_fail_icon_en@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ms_room_game_victory_top_fail_icon_en@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ms_room_game_victory_top_icon_en@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ms_room_game_victory_top_icon_en@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

View File

@@ -32,8 +32,8 @@ typedef NS_ENUM(NSInteger, XPMineItemType) {
XPMineItemType_FansTeam = 72,///粉丝团
XPMineItemType_DressUp_Market = 73, ///装扮商场
XPMineItemType_My_Dressup = 74,///我的装扮
XPMineItemType_My_Set = 75///设置
XPMineItemType_My_Set = 75,///设置
XPMineItemType_My_Gift = 77///我的转赠
};

View File

@@ -316,6 +316,11 @@ UIKIT_EXTERN NSString *kRequestRicket;
}
break;
case XPMineItemType_My_Gift:
{
[self pushGiveDiamondVC];
}
break;
default:
break;
}
@@ -359,7 +364,7 @@ UIKIT_EXTERN NSString *kRequestRicket;
return cell;
}else if (indexPath.section == 1) {
XPMinePersonalCenterCell * cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([XPMinePersonalCenterCell class])];
cell.isHaveGiveDiamond = self.isHavePermission;
// cell.isHaveGiveDiamond = self.isHavePermission;
@kWeakify(self)
cell.clickAction = ^(int type){
@kStrongify(self)
@@ -529,6 +534,12 @@ UIKIT_EXTERN NSString *kRequestRicket;
- (void)onGetMineFuntionItemSuccess:(NSArray<XPMineFuntionItemModel *> *)items {
[self.functionArray removeAllObjects];
[self.functionArray addObjectsFromArray:items];
for (XPMineFuntionItemModel * _Nonnull obj in self.functionArray) {
if(obj.skipType == XPMineItemType_My_Gift && self.isHavePermission == NO){
[self.functionArray removeObject:obj];
break;
}
}
[self.functionArray enumerateObjectsUsingBlock:^(XPMineFuntionItemModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if (obj.skipType == XPMineItemType_CP || obj.skipType == XPMineItemType_My_Room) {
[self.functionArray removeObject:obj];
@@ -536,6 +547,7 @@ UIKIT_EXTERN NSString *kRequestRicket;
if([obj.centerName isEqualToString:@"切换分区"]){
[self.functionArray removeObject:obj];
}
}];
NSMutableArray *array = [NSMutableArray array];
for (XPMineFuntionItemModel *item in self.functionArray) {

View File

@@ -156,7 +156,7 @@
[array addObject:roomPK];
}
if (isCreator && roomInfo.isPermitRoom == PermitRoomType_Licnese && roomInfo.type != RoomType_MiniGame) {
if (isCreator && roomInfo.type != RoomType_MiniGame) {
[array addObject:acrossRoomPK];
}

View File

@@ -32,7 +32,7 @@
if(_itemMode == nil)return;
_bgImageView.image = nil;
[_bgImageView loadImageWithUrl:_itemMode.modeIcon completion:^(UIImage * _Nullable image, NSURL * _Nonnull url) {
self.bgImageView.image = [image ms_SetImageForRTL];
self.bgImageView.image = image;
}];
}
#pragma mark -

View File

@@ -158,13 +158,7 @@
self.headView.roomGameModel = model;
self.headView.userInfo = self.userinfo;
self.roomId = model.roomId;
[self enterNIMRoomWithRoomId:self.roomId];
if(model.data.matchStatus == MSRoomGameInfoModelMatchSuccessfully && model.data.roundStatus == 0){
self.roomGameView.gameModel = model;
if(self.roomGameView.superview == nil){
@@ -248,6 +242,9 @@
- (void)clickQuitGameAction{
MSRoomGameQuitGameView *quitGameView = [[MSRoomGameQuitGameView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight)];
if(self.headView.roomGameModel.data.matchStatus == MSRoomGameInfoModelMatchmaking){
quitGameView.text = YMLocalizedString(@"MSRoomGameQuitGameView5");
}
quitGameView.delegate = self;
[TTPopup popupView:quitGameView style:TTPopupStyleAlert];
}

View File

@@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)closeGameActionWithModel:(MSTabbarRoomGameItemModel *)model;
@end
@interface MSRoomGameQuitGameView : UIView
@property(nonatomic,copy) NSString *text;
@property(nonatomic,strong) MSTabbarRoomGameItemModel *chooseGameModel;
@property(nonatomic,assign) BOOL isNormalFail;
@property(nonatomic,weak) id<MSRoomGameQuitGameViewDelegate>delegate;

View File

@@ -51,6 +51,10 @@
make.top.mas_equalTo(kGetScaleWidth(48));
}];
}
-(void)setText:(NSString *)text{
_text = text;
_titleView.text = _text;
}
-(void)setChooseGameModel:(MSTabbarRoomGameItemModel *)chooseGameModel{
_chooseGameModel = chooseGameModel;
@@ -128,6 +132,8 @@
_resumeBtn.titleLabel.font = kFontBold(14);
_resumeBtn.layer.cornerRadius = kGetScaleWidth(38)/2;
_resumeBtn.layer.masksToBounds = YES;
_resumeBtn.titleLabel.numberOfLines = 2;
_resumeBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
[_resumeBtn addTarget:self action:@selector(resumeBtnAction) forControlEvents:UIControlEventTouchUpInside];
}
return _resumeBtn;

View File

@@ -95,7 +95,7 @@
_resultsList = resultsList;
MSRoomGameResultsModel *resultsModel = _resultsList.firstObject;
NSString *uid = [AccountInfoStorage instance].getUid;
self.topView.image = [resultsModel.uid isEqualToString:[AccountInfoStorage instance].getUid] ? kImage(@"ms_room_game_victory_top_icon") : kImage(@"ms_room_game_victory_top_fail_icon");
self.topView.image = [resultsModel.uid isEqualToString:uid] ? [UIImage getLanguageImage:@"ms_room_game_victory_top_icon"]: [UIImage getLanguageImage:@"ms_room_game_victory_top_fail_icon"];
[_tableView reloadData];
}
#pragma mark -

View File

@@ -3811,6 +3811,7 @@ ineHeadView12" = "الحمل";
"MSRoomGameQuitGameView2"="متابعة اللعب";
"MSRoomGameQuitGameView3"="فشلت المطابقة، هل تريد المحاولة مرة أخرى؟";
"MSRoomGameQuitGameView4"="جاري التحميل، هل تريد العودة إلى الغرفة؟";
"MSRoomGameQuitGameView5"="جاري المطابقة، الخروج من الغرفة ،نهاية المطابقة. هل تريد الخروج؟";
//MSRoomGameHeadView
"MSRoomGameHeadView0"="جاري المطابقة ";

View File

@@ -3619,7 +3619,7 @@
"MSRoomGameQuitGameView2"="Continue the game";
"MSRoomGameQuit tGameView3"="Match failed, do you want to rematch? ";
"MSRoomGameQuitGameView4"="Game in progress, do you want to return to the room? ";
"MSRoomGameQuitGameView5"="During a match, exiting a room will end the match. Do you want to exit?";
//MSRoomGameHeadView
"MSRoomGameHeadView0"="Matching";
"MSRoomGameHeadView1"="Match successful";

View File

@@ -3274,7 +3274,7 @@
"MSRoomGameQuitGameView2"="继续游戏";
"MSRoomGameQuitGameView3"="匹配失败,是否重新匹配?";
"MSRoomGameQuitGameView4"="游戏进行中,是否返回房间?";
"MSRoomGameQuitGameView5"="游戏匹配中,退出房间则结束匹配,是否退出?";
//MSRoomGameHeadView
"MSRoomGameHeadView0"="匹配中";
"MSRoomGameHeadView1"="匹配成功";

View File

@@ -3268,7 +3268,7 @@
"MSRoomGameQuitGameView2"="继续游戏";
"MSRoomGameQuitGameView3"="匹配失败,是否重新匹配?";
"MSRoomGameQuitGameView4"="游戏进行中,是否返回房间?";
"MSRoomGameQuitGameView5"="遊戲匹配中,退出房間則結束匹配,是否退出?";
//MSRoomGameHeadView
"MSRoomGameHeadView0"="匹配中";
"MSRoomGameHeadView1"="匹配成功";