提交
This commit is contained in:
@@ -394,7 +394,11 @@
|
||||
/// 2为背包
|
||||
NSString *userId = [self.pitUserListView.selectedArray componentsJoinedByString:@","];
|
||||
@weakify(self)
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:userId heart_id:self.heartId type:type pit_number:@"" successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
NSString *giftBag = @"";
|
||||
if (self.giftModel.activities_id.intValue == 4) {
|
||||
giftBag = self.giftModel.gift_bag;
|
||||
}
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:userId heart_id:self.heartId type:type pit_number:@"" gift_bag_id:giftBag successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
@strongify(self)
|
||||
if (type.intValue == 1) {
|
||||
if (self.roomSendSuccessBlock) {
|
||||
@@ -438,7 +442,11 @@
|
||||
NSString *userId = [self.pitUserListView.selectedArray componentsJoinedByString:@","];
|
||||
// NSString *type = self.categoryView.selectedIndex==0?@"2":@"1";
|
||||
@weakify(self)
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:userId heart_id:self.heartId type:type pit_number:@"" successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
NSString *giftBag = @"";
|
||||
if (self.giftModel.activities_id.intValue == 4) {
|
||||
giftBag = self.giftModel.gift_bag;
|
||||
}
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:userId heart_id:self.heartId type:type pit_number:@"" gift_bag_id:giftBag successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
@strongify(self)
|
||||
if (type.intValue == 1) {
|
||||
|
||||
@@ -1271,9 +1279,13 @@
|
||||
-(void)sendAction{
|
||||
[self startAnimation];
|
||||
[[QXGlobal shareGlobal] vibrationFeedback];
|
||||
NSString *giftBag = @"";
|
||||
if (self.giftModel.activities_id.intValue == 4) {
|
||||
giftBag = self.giftModel.gift_bag;
|
||||
}
|
||||
switch (self.sendType) {
|
||||
case QXSendGiftViewTypeRoom:
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:self.userId heart_id:self.heartId type:@"1" pit_number:@"" successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:self.userId heart_id:self.heartId type:@"1" pit_number:@"" gift_bag_id:giftBag successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
showToast(msg)
|
||||
@@ -1287,7 +1299,7 @@
|
||||
}];
|
||||
break;
|
||||
case QXSendGiftViewTypeFriend:
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:self.userId heart_id:self.heartId type:@"1" pit_number:@"" successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
[QXMineNetwork roomSendGiftWithRoomId:self.roomId gift_id:self.giftModel.gift_id gift_num:self.giftCount to_uid:self.userId heart_id:self.heartId type:@"1" pit_number:@"" gift_bag_id:giftBag successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
showToast(msg)
|
||||
|
||||
Reference in New Issue
Block a user