1.0.18 feat:支持给自己送礼物

This commit is contained in:
eggmanQQQ
2024-10-21 18:38:27 +08:00
parent 442af3d760
commit 01743623f2
2 changed files with 6 additions and 4 deletions

View File

@@ -52,9 +52,9 @@ typedef NS_ENUM(NSUInteger, GiftOtherViewType) {
- GameRoomSendType_Team 群聊礼物
*/
typedef NS_ENUM(NSUInteger, GiftSendType) {
GiftSendType_Room = 1,///zho
GiftSendType_Room = 1,
GiftSendType_Chat = 2,
GiftSendType_OnMic = 3,
GiftSendType_OnMic = 3,
};
/**

View File

@@ -119,7 +119,7 @@
/// @param users
- (NSArray *)findSendGiftAllUsers:(NSArray<XPGiftUserInfoModel *> *)users {
NSMutableArray * tempArray = [NSMutableArray array];
NSString * uid = [AccountInfoStorage instance].getUid;
// NSString * uid = [AccountInfoStorage instance].getUid;
NSArray * newArray = [users sortedArrayUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) {
XPGiftUserInfoModel * model1 = obj1;
XPGiftUserInfoModel * model2 = obj2;
@@ -129,7 +129,9 @@
for (int i = 0; i < newArray.count; i++) {
XPGiftUserInfoModel * userInfo = [newArray xpSafeObjectAtIndex:i];
if (userInfo && userInfo.uid > 0 && userInfo.uid != uid.integerValue) { ///
if (userInfo && userInfo.uid > 0
// && userInfo.uid != uid.integerValue
) { ///
NSString * uid = [NSString stringWithFormat:@"%ld", userInfo.uid];
if (userInfo.isSelect) {
[self.selectUserArray addObject:uid];