@@ -157,17 +157,17 @@ -(void)getRecentContactListsuccess:(SUCCESS)suc andError:(ERROR)err{
157157 for (NIMRecentSession *recent in NIMlistArr) {
158158 NSMutableDictionary *dic = [NSMutableDictionary dictionary ];
159159 [dic setObject: [NSString stringWithFormat: @" %@ " ,recent.session.sessionId] forKey: @" contactId" ];
160- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.session.sessionType] forKey: @" sessionType" ];
160+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.session.sessionType] forKey: @" sessionType" ];
161161 // 未读
162- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.unreadCount] forKey: @" unreadCount" ];
162+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.unreadCount] forKey: @" unreadCount" ];
163163 // 群组名称或者聊天对象名称
164164 [dic setObject: [NSString stringWithFormat: @" %@ " , [self nameForRecentSession: recent] ] forKey: @" name" ];
165165 // 账号
166166 [dic setObject: [NSString stringWithFormat: @" %@ " , recent.lastMessage.from] forKey: @" account" ];
167167 // 消息类型
168- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.lastMessage.messageType] forKey: @" msgType" ];
168+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.lastMessage.messageType] forKey: @" msgType" ];
169169 // 消息状态
170- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.lastMessage.deliveryState] forKey: @" msgStatus" ];
170+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.lastMessage.deliveryState] forKey: @" msgStatus" ];
171171 // 消息ID
172172 [dic setObject: [NSString stringWithFormat: @" %@ " , recent.lastMessage.messageId] forKey: @" messageId" ];
173173 // 消息内容
@@ -202,7 +202,7 @@ -(void)getResouces{
202202 if (recent.session .sessionType == NIMSessionTypeP2P) {
203203 NSMutableDictionary *dic = [NSMutableDictionary dictionary ];
204204 [dic setObject: [NSString stringWithFormat: @" %@ " ,recent.session.sessionId] forKey: @" contactId" ];
205- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.session.sessionType] forKey: @" sessionType" ];
205+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.session.sessionType] forKey: @" sessionType" ];
206206 // 未读
207207 NSString *strUnreadCount = [NSString stringWithFormat: @" %ld " , recent.unreadCount];
208208 allUnreadNum = allUnreadNum + [strUnreadCount integerValue ];
@@ -212,9 +212,9 @@ -(void)getResouces{
212212 // 账号
213213 [dic setObject: [NSString stringWithFormat: @" %@ " ,recent.lastMessage.session.sessionId] forKey: @" account" ];
214214 // 消息类型
215- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.lastMessage.messageType] forKey: @" msgType" ];
215+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.lastMessage.messageType] forKey: @" msgType" ];
216216 // 消息状态
217- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.lastMessage.deliveryState] forKey: @" msgStatus" ];
217+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.lastMessage.deliveryState] forKey: @" msgStatus" ];
218218 // 消息ID
219219 [dic setObject: [NSString stringWithFormat: @" %@ " , recent.lastMessage.messageId] forKey: @" messageId" ];
220220 // 消息内容
@@ -233,19 +233,19 @@ -(void)getResouces{
233233 if ( [[NIMSDK sharedSDK ].teamManager isMyTeam: recent.lastMessage.session.sessionId]) {
234234 NSMutableDictionary *dic = [NSMutableDictionary dictionary ];
235235 [dic setObject: [NSString stringWithFormat: @" %@ " ,recent.session.sessionId] forKey: @" contactId" ];
236- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.session.sessionType] forKey: @" sessionType" ];
236+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.session.sessionType] forKey: @" sessionType" ];
237237 // 未读
238- NSString *strUnreadCount = [NSString stringWithFormat: @" %ld " , recent.unreadCount];
238+ NSString *strUnreadCount = [NSString stringWithFormat: @" %zd " , recent.unreadCount];
239239 allUnreadNum = allUnreadNum + [strUnreadCount integerValue ];
240240 [dic setObject: strUnreadCount forKey: @" unreadCount" ];
241241 // 群组名称或者聊天对象名称
242242 [dic setObject: [NSString stringWithFormat: @" %@ " , [self nameForRecentSession: recent] ] forKey: @" name" ];
243243 // 账号
244244 [dic setObject: [NSString stringWithFormat: @" %@ " , recent.lastMessage.from] forKey: @" account" ];
245245 // 消息类型
246- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.lastMessage.messageType] forKey: @" msgType" ];
246+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.lastMessage.messageType] forKey: @" msgType" ];
247247 // 消息状态
248- [dic setObject: [NSString stringWithFormat: @" %ld " , recent.lastMessage.deliveryState] forKey: @" msgStatus" ];
248+ [dic setObject: [NSString stringWithFormat: @" %zd " , recent.lastMessage.deliveryState] forKey: @" msgStatus" ];
249249 // 消息ID
250250 [dic setObject: [NSString stringWithFormat: @" %@ " , recent.lastMessage.messageId] forKey: @" messageId" ];
251251 // 消息内容
@@ -255,7 +255,7 @@ -(void)getResouces{
255255
256256 [dic setObject: [NSString stringWithFormat: @" %@ " , [self imageUrlForRecentSession: recent] ? [self imageUrlForRecentSession: recent] : @" " ] forKey: @" imagePath" ];
257257 NIMTeam *team = [[[NIMSDK sharedSDK ] teamManager ]teamById:recent.lastMessage.session.sessionId];
258- [dic setObject: [NSString stringWithFormat: @" %ld " ,team.memberNumber] forKey: @" memberCount" ];
258+ [dic setObject: [NSString stringWithFormat: @" %zd " ,team.memberNumber] forKey: @" memberCount" ];
259259 NSString *strMute = team.notifyForNewMsg ?@" 1" :@" 0" ;
260260 [dic setObject: strMute forKey: @" mute" ];
261261 [sessionList addObject: dic];
0 commit comments