Răsfoiți Sursa

挂断加信息字段

ganzf 5 luni în urmă
părinte
comite
e4cb065cb3

+ 5 - 1
ABtong/ABtong/ALLController/JSwebRTC/JSGController.m

@@ -16,6 +16,7 @@
 #import <SystemConfiguration/SystemConfiguration.h>
 #import "CustomJitsiLogger.h"
 #import "FirendStore.h"
+#import "CryptoAES.h"
 
 @interface JSGController()<WebRTCStoreDelegate,AVAudioPlayerDelegate>
 @property (nonatomic,strong) JitsiMeetView *jitsiView;
@@ -406,7 +407,9 @@
             duration=[NSString stringWithFormat:@"%ld",(long)_startTime];
         }
         BOOL conetType=true;
+        NSString *content = [CryptoAES.shareInstance encryptStringL:@"[视频通话]"];
         if (self.audioOnly) {
+            content = [CryptoAES.shareInstance encryptStringL:@"[语音通话]"];
             conetType=false;
         }
         NSDictionary *callMsg = @{
@@ -424,7 +427,8 @@
                 @"result":result,
                 @"timestamp":strtime,
                 @"video":[NSNumber numberWithBool:conetType],
-                @"duration":duration
+                @"duration":duration,
+                @"content":content
             }
         };
         NSError *error;

+ 1 - 1
ABtong/ABtong/Common/Store/ChatListStore.m

@@ -113,7 +113,7 @@
 
 -(void)getnmChatlist{
     [ChatNetApi getchats:nil succ:^(int code, NSDictionary * res) {
-//        NSLog(@"getnmChatlist res:%@",res);
+        NSLog(@"getnmChatlist res:%@",res);
         NSArray *netArray = res[@"data"];
         if(netArray.count>0){
             netArray = [self saveArray:netArray];