7 Commits

Author SHA1 Message Date
liyuhua
c345afb68e 1.5.3版本发版 此commit置顶 2023-12-12 17:59:07 +08:00
liyuhua
06eacbb38f 修复bug 2023-12-12 11:53:14 +08:00
liyuhua
af64bafcfe 优化等级图标 2023-12-06 15:52:58 +08:00
liyuhua
c00a62c971 修复bug 2023-12-01 19:25:24 +08:00
liyuhua
04b72a58b2 1.5.2版本发版 此commit置顶 2023-11-23 10:56:32 +08:00
liyuhua
bd54fa6aa2 修复等级bug 2023-11-23 10:54:46 +08:00
liyuhua
2f516b8387 更换key 2023-11-22 14:30:00 +08:00
20 changed files with 75 additions and 54 deletions

View File

@@ -49,7 +49,7 @@ target 'xplan-ios' do
pod 'mob_sharesdk/ShareSDKPlatforms/WeChat_Lite' pod 'mob_sharesdk/ShareSDKPlatforms/WeChat_Lite'
pod 'mob_sharesdk/ShareSDKPlatforms/Apple' pod 'mob_sharesdk/ShareSDKPlatforms/Apple'
pod 'mob_sharesdk/ShareSDKExtension' pod 'mob_sharesdk/ShareSDKExtension'
pod 'SVGAPlayer', '~> 2.3' pod 'SVGAPlayer'
# 滑动标签栏 # 滑动标签栏
pod 'JXCategoryView' pod 'JXCategoryView'
pod 'JXPagingView/Pager' pod 'JXPagingView/Pager'

View File

@@ -153,7 +153,7 @@ DEPENDENCIES:
- mob_sharesdk/ShareSDKPlatforms/WeChat_Lite - mob_sharesdk/ShareSDKPlatforms/WeChat_Lite
- NIMSDK_LITE (~> 8.9.0) - NIMSDK_LITE (~> 8.9.0)
- NTESQuickPass - NTESQuickPass
- pop - pop (~> 1.0.12)
- QGVAPlayer - QGVAPlayer
- Qiniu - Qiniu
- QY_NIM_iOS_SDK (~> 6.6.1) - QY_NIM_iOS_SDK (~> 6.6.1)
@@ -162,7 +162,7 @@ DEPENDENCIES:
- SDWebImage - SDWebImage
- SDWebImageFLPlugin - SDWebImageFLPlugin
- SSKeychain - SSKeychain
- SVGAPlayer (~> 2.3) - SVGAPlayer
- SZTextView - SZTextView
- TXLiteAVSDK_TRTC (~> 11.4.14530) - TXLiteAVSDK_TRTC (~> 11.4.14530)
- TZImagePickerController - TZImagePickerController
@@ -271,6 +271,6 @@ SPEC CHECKSUMS:
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849 YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
YYWebImage: 5f7f36aee2ae293f016d418c7d6ba05c4863e928 YYWebImage: 5f7f36aee2ae293f016d418c7d6ba05c4863e928
PODFILE CHECKSUM: f44d894b616b0165722154f819e116f0d23597ff PODFILE CHECKSUM: 0f2e29ba8c875f839292918f612c6ec567ad4318
COCOAPODS: 1.12.1 COCOAPODS: 1.12.1

View File

@@ -11395,7 +11395,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.5.0; MARKETING_VERSION = 1.5.3;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
"-ObjC", "-ObjC",
@@ -11658,7 +11658,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.5.0; MARKETING_VERSION = 1.5.3;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
"-ObjC", "-ObjC",

View File

@@ -31,7 +31,7 @@
</Testables> </Testables>
</TestAction> </TestAction>
<LaunchAction <LaunchAction
buildConfiguration = "Debug" buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0" launchStyle = "0"

View File

@@ -8,13 +8,11 @@
#import "UserLevelVo.h" #import "UserLevelVo.h"
@implementation UserLevelVo @implementation UserLevelVo
- (void)setCharmUrl:(NSString *)charmUrl{ - (NSString *)charmNewUrl{
_charmUrl = charmUrl; return [NSString getCharmImageUrl:_charmUrl];;
_charmNewUrl = [NSString getCharmImageUrl:_charmUrl];
} }
- (void)setExperUrl:(NSString *)experUrl{ - (NSString *)experNewUrl{
_experUrl = experUrl; return [NSString getWealthImageUrl:_experUrl];
_experNewUrl = [NSString getWealthImageUrl:_experUrl];
} }
@end @end

View File

@@ -132,8 +132,13 @@
NSArray *charmList = [url componentsSeparatedByString:@"charm_"]; NSArray *charmList = [url componentsSeparatedByString:@"charm_"];
if(charmList.count == 2){ if(charmList.count == 2){
NSString *charmUrl = charmList[1]; NSString *charmUrl = charmList[1];
NSArray *curCharmList = [charmUrl componentsSeparatedByString:@"."];
if(curCharmList.count == 2){
return [NSString stringWithFormat:@"new_charm_%@",curCharmList.firstObject];
}
for (int i = 0;i < 110; i++) { for (int i = 0;i < 110; i++) {
NSString *num = i < 10 ? [NSString stringWithFormat:@"0%d",i+1] : [NSString stringWithFormat:@"%d",i+1]; NSString *num = i < 9 ? [NSString stringWithFormat:@"0%d",i+1] : [NSString stringWithFormat:@"%d",i+1];
if([charmUrl containsString:num]){ if([charmUrl containsString:num]){
getUrl = [NSString stringWithFormat:@"new_charm_%@",num]; getUrl = [NSString stringWithFormat:@"new_charm_%@",num];
break; break;
@@ -152,8 +157,12 @@
NSArray *wealthList = [url componentsSeparatedByString:@"wealth_"]; NSArray *wealthList = [url componentsSeparatedByString:@"wealth_"];
if(wealthList.count == 2){ if(wealthList.count == 2){
NSString *wealthUrl = wealthList[1]; NSString *wealthUrl = wealthList[1];
NSArray *curWealthList = [wealthUrl componentsSeparatedByString:@"."];
if(curWealthList.count == 2){
return [NSString stringWithFormat:@"new_exper_%@",curWealthList.firstObject];;
}
for (int i = 0;i < 110; i++) { for (int i = 0;i < 110; i++) {
NSString *num = i < 10 ? [NSString stringWithFormat:@"0%d",i+1] : [NSString stringWithFormat:@"%d",i+1]; NSString *num = i < 9 ? [NSString stringWithFormat:@"0%d",i+1] : [NSString stringWithFormat:@"%d",i+1];
if([wealthUrl containsString:num]){ if([wealthUrl containsString:num]){
getUrl = [NSString stringWithFormat:@"new_exper_%@",num]; getUrl = [NSString stringWithFormat:@"new_exper_%@",num];
break; break;

View File

@@ -14,7 +14,7 @@
///Tool ///Tool
#import "UIImage+Utils.h" #import "UIImage+Utils.h"
NSString *const adImageName = @"adImageName"; NSString *const adImageName = @"adImageName";
NSString *const adUrl = @"adUrl";
// 广 // 广
static int const showtime = 3; static int const showtime = 3;

View File

@@ -43,7 +43,7 @@ NSString * const KeyWithType(KeyType type) {
/// ///
@(YES):@{ @(YES):@{
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26", @(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_NTESQuickLoginBusinessId) : @"3a94ceb70b144963a03bf98cb55b812a", @(KeyType_NTESQuickLoginBusinessId) : @"200c83103d4a413591c7969dd8d4d6e2",
@(KeyType_QQAppid) : @"102044928", @(KeyType_QQAppid) : @"102044928",
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f", @(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
@(KeyType_WechatAppid) : @"wx4b772d5ebc964a38", @(KeyType_WechatAppid) : @"wx4b772d5ebc964a38",
@@ -66,7 +66,7 @@ NSString * const KeyWithType(KeyType type) {
/// ///
@(NO):@{ @(NO):@{
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26", @(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_NTESQuickLoginBusinessId) : @"3a94ceb70b144963a03bf98cb55b812a", @(KeyType_NTESQuickLoginBusinessId) : @"200c83103d4a413591c7969dd8d4d6e2",
@(KeyType_QQAppid) : @"102044928", @(KeyType_QQAppid) : @"102044928",
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f", @(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
@(KeyType_WechatAppid) : @"wx4b772d5ebc964a38", @(KeyType_WechatAppid) : @"wx4b772d5ebc964a38",

View File

@@ -8,12 +8,10 @@
#import "FindNewUserInfoModel.h" #import "FindNewUserInfoModel.h"
@implementation FindNewUserInfoModel @implementation FindNewUserInfoModel
- (void)setCharmUrl:(NSString *)charmUrl{ - (NSString *)charmNewUrl{
_charmUrl = charmUrl; return [NSString getCharmImageUrl:_charmUrl];;
_charmNewUrl = [NSString getCharmImageUrl:_charmUrl];
} }
- (void)setExperUrl:(NSString *)experUrl{ - (NSString *)experNewUrl{
_experUrl = experUrl; return [NSString getWealthImageUrl:_experUrl];
_experNewUrl = [NSString getWealthImageUrl:_experUrl];
} }
@end @end

View File

@@ -645,7 +645,11 @@
[[NIMSDK sharedSDK].conversationManager markAllMessagesReadInSession:self.session]; [[NIMSDK sharedSDK].conversationManager markAllMessagesReadInSession:self.session];
} }
- (void)onRecvRevokeMessageNotification:(NIMRevokeMessageNotification *)notification{
[[NIMSDK sharedSDK].conversationManager deleteMessage:notification.message];
}
- (void)sendMessage:(NIMMessage *)message didCompleteWithError:(NSError *)error { - (void)sendMessage:(NIMMessage *)message didCompleteWithError:(NSError *)error {
if (message.session.sessionType != NIMSessionTypeP2P) { if (message.session.sessionType != NIMSessionTypeP2P) {
return; return;

View File

@@ -27,7 +27,7 @@ NSString * const kMessageShowReadDotKey = @"kMessageShowReadDotKey";
#import <Masonry/Masonry.h> #import <Masonry/Masonry.h>
@interface SessionListViewController ()<UITableViewDataSource, UITableViewDelegate, NIMLoginManagerDelegate, NIMConversationManagerDelegate, XPSessionListHeadViewDelegate> @interface SessionListViewController ()<UITableViewDataSource, UITableViewDelegate, NIMLoginManagerDelegate, NIMConversationManagerDelegate, XPSessionListHeadViewDelegate,NIMChatManagerDelegate>
@property (nonatomic, strong) XPSessionListHeadView *headView; @property (nonatomic, strong) XPSessionListHeadView *headView;
/** /**
@@ -54,6 +54,7 @@ NSString * const kMessageShowReadDotKey = @"kMessageShowReadDotKey";
- (void)dealloc { - (void)dealloc {
[[NIMSDK sharedSDK].conversationManager removeDelegate:self]; [[NIMSDK sharedSDK].conversationManager removeDelegate:self];
[[NIMSDK sharedSDK].loginManager removeDelegate:self]; [[NIMSDK sharedSDK].loginManager removeDelegate:self];
[[NIMSDK sharedSDK].chatManager removeDelegate:self];
} }
- (BOOL)isHiddenNavBar { - (BOOL)isHiddenNavBar {
@@ -98,6 +99,7 @@ NSString * const kMessageShowReadDotKey = @"kMessageShowReadDotKey";
[self initDatas]; [self initDatas];
[[NIMSDK sharedSDK].conversationManager addDelegate:self]; [[NIMSDK sharedSDK].conversationManager addDelegate:self];
[[NIMSDK sharedSDK].loginManager addDelegate:self]; [[NIMSDK sharedSDK].loginManager addDelegate:self];
[[NIMSDK sharedSDK].chatManager addDelegate:self];
/// ///
[[NIMSDKConfig sharedConfig] setShouldSyncStickTopSessionInfos:YES]; [[NIMSDKConfig sharedConfig] setShouldSyncStickTopSessionInfos:YES];
} }
@@ -293,7 +295,15 @@ NSString * const kMessageShowReadDotKey = @"kMessageShowReadDotKey";
[self.sessionListView reloadData]; [self.sessionListView reloadData];
[self setTabBarItemBadge:totalUnreadCount]; [self setTabBarItemBadge:totalUnreadCount];
} }
- (void)onRecvRevokeMessageNotification:(NIMRevokeMessageNotification *)notification{
for (NIMRecentSession *recent in self.recentSessions) {
if ([recent.session.sessionId isEqualToString:notification.session.sessionId]) {
id<NIMConversationManager> manager = [[NIMSDK sharedSDK] conversationManager];
[manager deleteRecentSession:recent];
break;
}
}
}
- (void)didUpdateRecentSession:(NIMRecentSession *)recentSession - (void)didUpdateRecentSession:(NIMRecentSession *)recentSession
totalUnreadCount:(NSInteger)totalUnreadCount { totalUnreadCount:(NSInteger)totalUnreadCount {
if(self.openType != SessionListOpenTypeRoom && [[ClientConfig shareConfig].configInfo.officialMsgUids containsObject:recentSession.session.sessionId]) { if(self.openType != SessionListOpenTypeRoom && [[ClientConfig shareConfig].configInfo.officialMsgUids containsObject:recentSession.session.sessionId]) {

View File

@@ -16,12 +16,10 @@
@"userInRoomUid": @"userInRoom.uid" @"userInRoomUid": @"userInRoom.uid"
}; };
} }
- (void)setCharmUrl:(NSString *)charmUrl{ - (NSString *)charmNewUrl{
_charmUrl = charmUrl; return [NSString getCharmImageUrl:_charmUrl];;
_charmNewUrl = [NSString getCharmImageUrl:_charmUrl];
} }
- (void)setExperUrl:(NSString *)experUrl{ - (NSString *)experNewUrl{
_experUrl = experUrl; return [NSString getWealthImageUrl:_experUrl];
_experNewUrl = [NSString getWealthImageUrl:_experUrl];
} }
@end @end

View File

@@ -72,7 +72,8 @@
self.avatarImageView.imageUrl = avatarUrl; self.avatarImageView.imageUrl = avatarUrl;
self.nickLabel.text = user.userInfo.nickName; self.nickLabel.text = user.userInfo.nickName;
[self.nickLabel sizeToFit]; [self.nickLabel sizeToFit];
self.contentLabel.text = [NIMMessageUtils messageContent:session.lastMessage]; // self.contentLabel.text = [NIMMessageUtils messageContent:session.lastMessage];
self.contentLabel.text = @"收到一条新消息";
} }
} }
@@ -103,6 +104,7 @@
_contentLabel = [[UILabel alloc] init]; _contentLabel = [[UILabel alloc] init];
_contentLabel.font = [UIFont systemFontOfSize:10]; _contentLabel.font = [UIFont systemFontOfSize:10];
_contentLabel.textColor = [ThemeColor mainTextColor]; _contentLabel.textColor = [ThemeColor mainTextColor];
_contentLabel.adjustsFontSizeToFitWidth = YES;
} }
return _contentLabel; return _contentLabel;
} }

View File

@@ -21,12 +21,10 @@
@"charmUrl":@"userLevelVo.charmUrl" @"charmUrl":@"userLevelVo.charmUrl"
}; };
} }
- (void)setCharmUrl:(NSString *)charmUrl{ - (NSString *)charmNewUrl{
_charmUrl = charmUrl; return [NSString getCharmImageUrl:_charmUrl];;
_charmNewUrl = [NSString getCharmImageUrl:_charmUrl];
} }
- (void)setExperUrl:(NSString *)experUrl{ - (NSString *)experNewUrl{
_experUrl = experUrl; return [NSString getWealthImageUrl:_experUrl];
_experNewUrl = [NSString getWealthImageUrl:_experUrl];
} }
@end @end

View File

@@ -56,6 +56,7 @@
@property (nonatomic,strong) XPClanSectionView *sectionView; @property (nonatomic,strong) XPClanSectionView *sectionView;
/// ///
@property (nonatomic,assign) BOOL isRequest; @property (nonatomic,assign) BOOL isRequest;
@property(nonatomic,assign) NSInteger count;
@end @end
@implementation XPMineClanViewController @implementation XPMineClanViewController
@@ -173,7 +174,7 @@
sectionView.delegate = self; sectionView.delegate = self;
self.sectionView = sectionView; self.sectionView = sectionView;
} }
self.sectionView.title = [NSString stringWithFormat:@"公会成员(%ld", self.datasource.count]; self.sectionView.title = [NSString stringWithFormat:@"公会成员(%ld", self.count];
return self.sectionView; return self.sectionView;
} }
return [UIView new]; return [UIView new];
@@ -232,6 +233,8 @@
} else { } else {
self.hasNoMoreData = YES; self.hasNoMoreData = YES;
} }
self.count = memberInfo.count;
[self.tableView reloadData]; [self.tableView reloadData];
} }

View File

@@ -8,12 +8,10 @@
#import "XPRoomRankListModel.h" #import "XPRoomRankListModel.h"
@implementation XPRoomRankListModel @implementation XPRoomRankListModel
- (void)setCharmUrl:(NSString *)charmUrl{ - (NSString *)charmNewUrl{
_charmUrl = charmUrl; return [NSString getCharmImageUrl:_charmUrl];;
_charmNewUrl = [NSString getCharmImageUrl:_charmUrl];
} }
- (void)setExperUrl:(NSString *)experUrl{ - (NSString *)experNewUrl{
_experUrl = experUrl; return [NSString getWealthImageUrl:_experUrl];
_experNewUrl = [NSString getWealthImageUrl:_experUrl];
} }
@end @end

View File

@@ -9,6 +9,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface XPMessageInfoModel : NSObject @interface XPMessageInfoModel : NSObject
///显示文本 ///显示文本
@property (nonatomic,strong) NSAttributedString *content; @property (nonatomic,strong) NSAttributedString *content;
///cell的高度 ///cell的高度

View File

@@ -8,12 +8,11 @@
#import "XPMessageRemoteExtModel.h" #import "XPMessageRemoteExtModel.h"
@implementation XPMessageRemoteExtModel @implementation XPMessageRemoteExtModel
- (void)setCharmUrl:(NSString *)charmUrl{
_charmUrl = charmUrl; - (NSString *)charmNewUrl{
_charmNewUrl = [NSString getCharmImageUrl:_charmUrl]; return [NSString getCharmImageUrl:_charmUrl];;
} }
- (void)setExperUrl:(NSString *)experUrl{ - (NSString *)experNewUrl{
_experUrl = experUrl; return [NSString getWealthImageUrl:_experUrl];
_experNewUrl = [NSString getWealthImageUrl:_experUrl];
} }
@end @end

View File

@@ -182,11 +182,14 @@
if ([self isCurrentRoomSuperAdmin:message.from]) { if ([self isCurrentRoomSuperAdmin:message.from]) {
[attribute appendAttributedString:[self createLocalImageAttribute:@"common_super_admin"]]; [attribute appendAttributedString:[self createLocalImageAttribute:@"common_super_admin"]];
} }
if (model.experUrl) { if (model.experUrl) {
[attribute appendAttributedString:[self createCharmOrExperImageAttribute:model.experNewUrl]]; [attribute appendAttributedString:[self createCharmOrExperImageAttribute:model.experNewUrl]];
[attribute appendAttributedString:[self createSapceAttribute:2]]; [attribute appendAttributedString:[self createSapceAttribute:2]];
} }
if (model.charmUrl) { if (model.charmUrl) {
[attribute appendAttributedString:[self createCharmOrExperImageAttribute:model.charmNewUrl]]; [attribute appendAttributedString:[self createCharmOrExperImageAttribute:model.charmNewUrl]];
[attribute appendAttributedString:[self createSapceAttribute:2]]; [attribute appendAttributedString:[self createSapceAttribute:2]];
} }

View File

@@ -157,7 +157,7 @@
} roomUid:self.roomUid targetUid:member.userId opt:@"1" isSet:@(NO)]; } roomUid:self.roomUid targetUid:member.userId opt:@"1" isSet:@(NO)];
}else{ }else{
NIMChatroomMemberUpdateRequest *request = [[NIMChatroomMemberUpdateRequest alloc]init]; NIMChatroomMemberUpdateRequest *request = [[NIMChatroomMemberUpdateRequest alloc]init];
request.roomId = self.roomUid; request.roomId = self.roomId;
request.userId = member.userId; request.userId = member.userId;
request.enable = NO; request.enable = NO;
[[NIMSDK sharedSDK].chatroomManager markMemberManager:request completion:^(NSError * _Nullable error) { [[NIMSDK sharedSDK].chatroomManager markMemberManager:request completion:^(NSError * _Nullable error) {