jiahao 5 лет назад
Родитель
Сommit
3da8a63df2
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      lib/chat/ChatPage.dart
  2. +1
    -1
      lib/chat/group_chat_view.dart

+ 1
- 1
lib/chat/ChatPage.dart Просмотреть файл

@@ -216,7 +216,7 @@ class _ChatPageState extends State<ChatPage> {
MsgModel msg = MsgHandler.createSendMsg(
ChatType.valueOf(originMsg.msgType), originMsg.msgContent);
msg.extraInfo = originMsg.extraInfo;
if(originMsg.extraFile.contains('http')){
if(originMsg.extraFile==null ||originMsg.extraFile.contains('http')){
msg.extraFile = originMsg.extraFile;
}else{
msg.extraFile = UploadUtil().getFullUrl(originMsg.extraFile, originMsg.sessionId, originMsg.channelType);


+ 1
- 1
lib/chat/group_chat_view.dart Просмотреть файл

@@ -113,7 +113,7 @@ class _GroupChatPageState extends State<GroupChatPage> {
channelType: ChatChannelType.Group);
msg.extraInfo = originMsg.extraInfo;
// msg.extraFile = originMsg.extraFile;
if(originMsg.extraFile.contains('http')){
if(originMsg.extraFile==null ||originMsg.extraFile.contains('http')){
msg.extraFile = originMsg.extraFile;
}else{
msg.extraFile = UploadUtil().getFullUrl(originMsg.extraFile, originMsg.sessionId, originMsg.channelType);


Загрузка…
Отмена
Сохранить