Compare commits
6 Commits
enterprise
...
appstore_2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b90a0e95cb | ||
![]() |
9ad32e84d8 | ||
![]() |
3a576925a2 | ||
![]() |
1bd2382d6a | ||
![]() |
509c47cc2a | ||
![]() |
0f47ed8ed7 |
@@ -12201,7 +12201,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 20.20.4;
|
MARKETING_VERSION = 20.20.6;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@@ -12236,7 +12236,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 20.20.4;
|
MARKETING_VERSION = 20.20.6;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
@@ -49,7 +49,7 @@ isPhoneXSeries = [[UIApplication sharedApplication] delegate].window.safeAreaIns
|
|||||||
|
|
||||||
|
|
||||||
///内置版本号
|
///内置版本号
|
||||||
#define PI_App_Version @"2.4.0"
|
#define PI_App_Version @"2.4.6"
|
||||||
///渠道
|
///渠道
|
||||||
#define PI_App_Source @"appstore"
|
#define PI_App_Source @"appstore"
|
||||||
//#define PI_App_Source @"pi_tf"
|
//#define PI_App_Source @"pi_tf"
|
||||||
|
@@ -54,7 +54,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>9</string>
|
<string>1</string>
|
||||||
<key>FacebookAppID</key>
|
<key>FacebookAppID</key>
|
||||||
<string>1266232494209868</string>
|
<string>1266232494209868</string>
|
||||||
<key>FacebookClientToken</key>
|
<key>FacebookClientToken</key>
|
||||||
|
@@ -47,7 +47,8 @@
|
|||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
self.pi_phoneAreaCode = @"852";
|
NSString *code = [NSString getCountryCode];
|
||||||
|
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];
|
||||||
[self initSubViews];
|
[self initSubViews];
|
||||||
[self initSubViewConstraints];
|
[self initSubViewConstraints];
|
||||||
[self initEvents];
|
[self initEvents];
|
||||||
|
@@ -44,7 +44,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
self.pi_phoneAreaCode = @"852";
|
NSString *code = [NSString getCountryCode];
|
||||||
|
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];
|
||||||
|
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
[self createUI];
|
[self createUI];
|
||||||
|
@@ -67,7 +67,8 @@
|
|||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
self.selectType = 0;
|
self.selectType = 0;
|
||||||
self.pi_phoneAreaCode = @"852";
|
NSString *code = [NSString getCountryCode];
|
||||||
|
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
[self createUI];
|
[self createUI];
|
||||||
[self racBind];
|
[self racBind];
|
||||||
|
@@ -54,7 +54,8 @@
|
|||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
self.pi_phoneAreaCode = @"852";
|
NSString *code = [NSString getCountryCode];
|
||||||
|
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];
|
||||||
[self initSubViews];
|
[self initSubViews];
|
||||||
[self initSubViewConstraints];
|
[self initSubViewConstraints];
|
||||||
[self setConfigs];
|
[self setConfigs];
|
||||||
|
@@ -46,7 +46,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
//是否为周榜top1
|
//是否为周榜top1
|
||||||
@property(nonatomic,assign) BOOL isWeekTop1;
|
@property(nonatomic,assign) BOOL isWeekTop1;
|
||||||
@property(nonatomic,copy) NSString *inRoomUid;
|
@property(nonatomic,copy) NSString *inRoomUid;
|
||||||
|
|
||||||
//是否在麦位
|
//是否在麦位
|
||||||
@property(nonatomic,assign) BOOL inMic;
|
@property(nonatomic,assign) BOOL inMic;
|
||||||
///是否在线
|
///是否在线
|
||||||
|
@@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@interface XPNewHomePartyTableViewCell : UITableViewCell
|
@interface XPNewHomePartyTableViewCell : UITableViewCell
|
||||||
|
|
||||||
@property (nonatomic,strong) HomePlayRoomModel *roomInfo;
|
@property (nonatomic,strong) HomePlayRoomModel *roomInfo;
|
||||||
@property (nonatomic,strong) HomeRecommendRoomModel *roomInfo1;
|
|
||||||
@property(nonatomic,weak) id<XPNewHomePartyTableViewCellDelegate>delegate;
|
@property(nonatomic,weak) id<XPNewHomePartyTableViewCellDelegate>delegate;
|
||||||
///声音卡时,svga是否播放动画
|
///声音卡时,svga是否播放动画
|
||||||
-(void)setPlaySoundStatus:(BOOL)isPlay;
|
-(void)setPlaySoundStatus:(BOOL)isPlay;
|
||||||
|
@@ -243,14 +243,7 @@
|
|||||||
-(void)setPlaySoundTime:(NSInteger)time{
|
-(void)setPlaySoundTime:(NSInteger)time{
|
||||||
_audioView.voiceDura = @(time).stringValue;
|
_audioView.voiceDura = @(time).stringValue;
|
||||||
}
|
}
|
||||||
- (void)setRoomInfo1:(HomeRecommendRoomModel *)roomInfo1 {
|
|
||||||
_roomInfo1 = roomInfo1;
|
|
||||||
if (_roomInfo1) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-(void)didSelectItemAction{
|
-(void)didSelectItemAction{
|
||||||
|
|
||||||
|
@@ -431,6 +431,7 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
|
|||||||
-(void)xPNewHomePartyTableViewCell:(XPNewHomePartyTableViewCell *_Nullable)cell didSelectChat:(HomePlayRoomModel *_Nonnull)roomModel{
|
-(void)xPNewHomePartyTableViewCell:(XPNewHomePartyTableViewCell *_Nullable)cell didSelectChat:(HomePlayRoomModel *_Nonnull)roomModel{
|
||||||
if(roomModel.inMic == YES){
|
if(roomModel.inMic == YES){
|
||||||
[XPRoomViewController openRoom:roomModel.inRoomUid fromNick:roomModel.nick fromType:UserEnterRoomFromType_Follow_User fromUid:roomModel.uid viewController:self];
|
[XPRoomViewController openRoom:roomModel.inRoomUid fromNick:roomModel.nick fromType:UserEnterRoomFromType_Follow_User fromUid:roomModel.uid viewController:self];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -273,18 +273,24 @@
|
|||||||
self.nameLabel.text = self.model.anchorNick;
|
self.nameLabel.text = self.model.anchorNick;
|
||||||
self.countLabel.text = [NSString stringWithFormat:YMLocalizedString(@"XPAnchorFansTeamViewController0"), self.model.teamNum];
|
self.countLabel.text = [NSString stringWithFormat:YMLocalizedString(@"XPAnchorFansTeamViewController0"), self.model.teamNum];
|
||||||
|
|
||||||
XPAnchorFansPrivilegeModel *nameplateModel = self.model.privilegeConfigVos[0];
|
for (XPAnchorFansPrivilegeModel *obj in self.model.privilegeConfigVos) {
|
||||||
self.nameplateImageView.imageUrl = nameplateModel.icon;
|
if(obj.type == 1){
|
||||||
self.nameplateLabel.text = nameplateModel.name;
|
XPAnchorFansPrivilegeModel *nameplateModel = obj;
|
||||||
self.nameplateDescLabel.text = nameplateModel.desc;
|
self.nameplateImageView.imageUrl = nameplateModel.icon;
|
||||||
XPAnchorFansPrivilegeModel *giftModel = self.model.privilegeConfigVos[1];
|
self.nameplateLabel.text = nameplateModel.name;
|
||||||
self.giftImageView.imageUrl = giftModel.icon;
|
self.nameplateDescLabel.text = nameplateModel.desc;
|
||||||
self.giftLabel.text = giftModel.name;
|
}else if(obj.type == 2){
|
||||||
self.giftDescLabel.text = giftModel.desc;
|
XPAnchorFansPrivilegeModel *giftModel = obj;
|
||||||
|
self.giftImageView.imageUrl = giftModel.icon;
|
||||||
|
self.giftLabel.text = giftModel.name;
|
||||||
|
self.giftDescLabel.text = giftModel.desc;
|
||||||
|
}else if(obj.type == 3){
|
||||||
|
XPAnchorFansPrivilegeModel *joinModel = obj;
|
||||||
|
self.joinLabel.text = joinModel.name;
|
||||||
|
self.iconImageView.imageUrl = joinModel.icon;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
XPAnchorFansPrivilegeModel *joinModel = self.model.privilegeConfigVos[2];
|
|
||||||
self.joinLabel.text = joinModel.name;
|
|
||||||
self.iconImageView.imageUrl = joinModel.icon;
|
|
||||||
|
|
||||||
CGFloat margin = 8;
|
CGFloat margin = 8;
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
@@ -323,7 +329,14 @@
|
|||||||
|
|
||||||
- (void)joinButtonAction:(UIButton *)button {
|
- (void)joinButtonAction:(UIButton *)button {
|
||||||
button.userInteractionEnabled = NO;
|
button.userInteractionEnabled = NO;
|
||||||
XPAnchorFansPrivilegeModel *joinModel = self.model.privilegeConfigVos[2];
|
XPAnchorFansPrivilegeModel *joinModel;
|
||||||
|
for (XPAnchorFansPrivilegeModel *obj in self.model.privilegeConfigVos) {
|
||||||
|
if(obj.type == 3){
|
||||||
|
joinModel = obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(joinModel == nil)return;
|
||||||
|
|
||||||
[Api requestSendAnchorFansGift:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
|
[Api requestSendAnchorFansGift:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
[self showSuccessToast:YMLocalizedString(@"XPAnchorFansTeamViewController1")];
|
[self showSuccessToast:YMLocalizedString(@"XPAnchorFansTeamViewController1")];
|
||||||
|
@@ -104,9 +104,6 @@
|
|||||||
#else
|
#else
|
||||||
isTestEnv = NO;
|
isTestEnv = NO;
|
||||||
#endif
|
#endif
|
||||||
if(isEnterprise == NO){
|
|
||||||
[[SudMGP getCfg]setBackgroundMode:NO];
|
|
||||||
}
|
|
||||||
[SudMGP initSDK:KeyWithType(KeyType_SudGameAppID) appKey:KeyWithType(KeyType_SudGameAppKey) isTestEnv:isTestEnv listener:^(int retCode, const NSString *retMsg) {
|
[SudMGP initSDK:KeyWithType(KeyType_SudGameAppID) appKey:KeyWithType(KeyType_SudGameAppKey) isTestEnv:isTestEnv listener:^(int retCode, const NSString *retMsg) {
|
||||||
if (retCode == 0) {
|
if (retCode == 0) {
|
||||||
if (!self.currentmgId) {
|
if (!self.currentmgId) {
|
||||||
|
@@ -196,7 +196,44 @@
|
|||||||
[[NIMSDK sharedSDK].chatroomManager updateChatroomQueueObject:request completion:^(NSError * _Nullable error) {
|
[[NIMSDK sharedSDK].chatroomManager updateChatroomQueueObject:request completion:^(NSError * _Nullable error) {
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
-(void)updateNIMMicroQueues{
|
||||||
|
RoomInfoModel* roomInfo = self.hostDelegate.getRoomInfo;
|
||||||
|
// 获取麦位的状态,并初始化 self.micQueue 。
|
||||||
|
[[NIMSDK sharedSDK].chatroomManager fetchChatroomInfo:[NSString stringWithFormat:@"%ld", (long)roomInfo.roomId] completion:^(NSError * _Nullable error, NIMChatroom * _Nullable chatroom) {
|
||||||
|
if (error) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
NSDictionary *info = (NSDictionary *)[chatroom.ext toJSONObject];
|
||||||
|
NSDictionary *micState = [info[@"micQueue"] toJSONObject];
|
||||||
|
for (NSString *position in micState.allKeys) {
|
||||||
|
MicroStateModel *state = [MicroStateModel modelWithJSON:micState[position]];
|
||||||
|
MicroQueueModel *sequence = [self.micQueue objectForKey:position];
|
||||||
|
sequence.microState = state;
|
||||||
|
}
|
||||||
|
[self microQueueUpdated: NO];
|
||||||
|
}];
|
||||||
|
self.hadGetQueueInfoSuccess = NO;
|
||||||
|
// 获取麦位的用户,并初始化 self.micQueue 。
|
||||||
|
[[NIMSDK sharedSDK].chatroomManager fetchChatroomQueue:[NSString stringWithFormat:@"%ld", (long)roomInfo.roomId] completion:^(NSError * _Nullable error, NSArray<NSDictionary<NSString *,NSString *> *> * _Nullable info) {
|
||||||
|
if (error) return;
|
||||||
|
BOOL ownerRTCChange = NO;
|
||||||
|
|
||||||
|
for (NSDictionary *item in info) {
|
||||||
|
UserInfoModel *userInfo = [UserInfoModel modelWithJSON:item.allValues.firstObject];
|
||||||
|
NSString *position = item.allKeys.firstObject;
|
||||||
|
MicroQueueModel *sequence = [self.micQueue objectForKey:position];
|
||||||
|
sequence.userInfo = userInfo;
|
||||||
|
if (userInfo.uid == [AccountInfoStorage instance].getUid.integerValue) {
|
||||||
|
ownerRTCChange = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[self microQueueUpdated:ownerRTCChange];
|
||||||
|
[self.hostDelegate onMicroQueueUpdate:self.micQueue];
|
||||||
|
self.hadGetQueueInfoSuccess = YES;
|
||||||
|
|
||||||
|
}];
|
||||||
|
|
||||||
|
}
|
||||||
- (void)initGiftValue{
|
- (void)initGiftValue{
|
||||||
RoomInfoModel* roomInfo = self.hostDelegate.getRoomInfo;
|
RoomInfoModel* roomInfo = self.hostDelegate.getRoomInfo;
|
||||||
// 获取礼物值
|
// 获取礼物值
|
||||||
@@ -502,8 +539,10 @@
|
|||||||
for (MicroQueueModel *sequence in self.micQueue.allValues) {
|
for (MicroQueueModel *sequence in self.micQueue.allValues) {
|
||||||
if ([AccountInfoStorage instance].getUid.integerValue == sequence.userInfo.uid) {
|
if ([AccountInfoStorage instance].getUid.integerValue == sequence.userInfo.uid) {
|
||||||
NIMChatroomQueueUpdateRequest *request = [[NIMChatroomQueueUpdateRequest alloc]init];
|
NIMChatroomQueueUpdateRequest *request = [[NIMChatroomQueueUpdateRequest alloc]init];
|
||||||
|
NSMutableDictionary *userInfo = [[NSMutableDictionary alloc]initWithDictionary:[sequence.userInfo toJSONObject]];
|
||||||
|
[userInfo setValue:@(YES) forKey:@"isNoProhibitMic"];
|
||||||
request.key = @(sequence.microState.position).stringValue;
|
request.key = @(sequence.microState.position).stringValue;
|
||||||
request.value = [sequence.userInfo toJSONString];
|
request.value = [userInfo toJSONString];
|
||||||
request.roomId = roomId;
|
request.roomId = roomId;
|
||||||
request.transient = YES;
|
request.transient = YES;
|
||||||
[[NIMSDK sharedSDK].chatroomManager updateChatroomQueueObject:request completion:^(NSError * _Nullable error) {
|
[[NIMSDK sharedSDK].chatroomManager updateChatroomQueueObject:request completion:^(NSError * _Nullable error) {
|
||||||
@@ -513,7 +552,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (content.source.userId.integerValue == [AccountInfoStorage instance].getUid.integerValue){
|
if (content.source.userId.integerValue == [AccountInfoStorage instance].getUid.integerValue){
|
||||||
[self initNIMMicroQueues];
|
[self updateNIMMicroQueues];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user