From e7bacabf3e4d76e74b72358e37d46ac4378a3ec6 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 05 Jul 2021 17:21:48 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/qfqk-android

---
 pages/groupChat/chatingQZ.vue |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/pages/groupChat/chatingQZ.vue b/pages/groupChat/chatingQZ.vue
index fde4bf8..0d47c8f 100644
--- a/pages/groupChat/chatingQZ.vue
+++ b/pages/groupChat/chatingQZ.vue
@@ -221,8 +221,8 @@
 						'content-type': 'application/x-www-form-urlencoded', 
 					},
 					data:{
-						//gid: that.recipientId
-						gid: "1"
+						gid: that.recipientId
+						//gid: "1"
 					},
 					success:(res)=> {
 						// recAvatar: null,//接收者头像
@@ -234,7 +234,9 @@
 							}else{
 								resdata[i].avatar = resdata[i].avatar;
 							}
-							
+							if(resdata[i].sender_id == that.senId){
+								that.senAvatar = resdata[i].avatar;
+							}
 							
 						}
 						let msg = res.data.data;
@@ -325,12 +327,12 @@
 				}
 				nowTime = t
 				let sendMsg = {
-					senderId: that.senId,
-					recipientId: that.recipientId,
+					sender_id: that.senId,
 					post_message: e.message,
 					message_type: 0,
 					status: 0,
 					post_time: nowTime,
+					avatar:that.senAvatar
 				}
 				
 				uni.request({
@@ -342,9 +344,9 @@
 						messageType: 0,
 						status: 0,
 						postTime: sentTime,
+						gid:that.recipientId
 					},
 					success:(res)=> {
-						
 					}
 				});
 				

--
Gitblit v1.9.3