|
@@ -2297,6 +2297,18 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
}
|
|
|
|
|
|
- (void)notice2ndClick {
|
|
|
+
|
|
|
+
|
|
|
+ JXLabelObject *obj = [JXLabelObject sharedInstance];
|
|
|
+ NSString *selectItem = [obj fetchGroupAnnouncementSelectItemFromLocal];
|
|
|
+
|
|
|
+ if (selectItem.length==0) {
|
|
|
+
|
|
|
+ [g_App showAlert:@"请等待开奖"];
|
|
|
+
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
JLSelectView *customView = [[JLSelectView alloc] init];
|
|
|
__weak __typeof(self)weakSelf = self;
|
|
|
customView.returnModelBlock = ^(JLSelectModel *model, NSIndexPath *indexPath) {
|
|
@@ -2314,7 +2326,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
weakSelf.showTopView.selectItemModel=selectItemModel;
|
|
|
};
|
|
|
|
|
|
- JXLabelObject *obj = [JXLabelObject sharedInstance];
|
|
|
+// JXLabelObject *obj = [JXLabelObject sharedInstance];
|
|
|
obj.roomJid = self.roomJid;
|
|
|
NSString *groupAnnouncement = [obj fetchAllGroupAnnouncementFromLocal];
|
|
|
NSArray *response = [self dictionaryWithJsonString: groupAnnouncement];
|
|
@@ -8006,13 +8018,15 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
BOOL isOpen = [g_default boolForKey:kgoucaiComePush];
|
|
|
|
|
|
- BOOL isOpen2 = [g_default boolForKey:kGuanXinComePush];
|
|
|
+ BOOL isOpen2 = [g_default boolForKey:kGuanXinComePush];
|
|
|
_lotterInt=[dict[@"lottery"] intValue];
|
|
|
if ([dict[@"lottery"] intValue]==1) {
|
|
|
_floating.hidden=NO;
|
|
|
+ _iscpGourp=100;
|
|
|
+
|
|
|
}else{
|
|
|
_floating.hidden=YES;
|
|
|
-
|
|
|
+ _iscpGourp=0;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -9453,7 +9467,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
_activityModel = model;
|
|
|
[_container dismiss];
|
|
|
|
|
|
- if ([model.roomJid isEqualToString:self.roomJid]) {
|
|
|
+ if ([model.roomJid isEqualToString:_roomJid]) {
|
|
|
|
|
|
[self hideKeyboard:NO];
|
|
|
[self showAdAlertViewImageRedPackage:@"ad_treasureBox.png" linkUrl:nil audio:nil duration:3 content:model showCancelButton:YES type:(DYAdModelTypeGiftOpen) success:NO];
|
|
@@ -9487,6 +9501,11 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ if (_iscpGourp==0) {
|
|
|
+
|
|
|
+ return;
|
|
|
+ }
|
|
|
/**/
|
|
|
if ([model.roomJid isEqualToString:_roomJid]) {
|
|
|
if (model.type == 1) {
|
|
@@ -9535,7 +9554,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
_noticeView2.hidden = NO;
|
|
|
}
|
|
|
- if(model.type == 0) {
|
|
|
+ if(model.type == 10) {
|
|
|
|
|
|
[self hideKeyboard:NO];
|
|
|
// 第一次设置
|