소스 검색

挂断加信息字段

ganzf 5 달 전
부모
커밋
e4cb065cb3
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 1
      ABtong/ABtong/ALLController/JSwebRTC/JSGController.m
  2. 1 1
      ABtong/ABtong/Common/Store/ChatListStore.m

+ 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];