jiahao 5 anos atrás
pai
commit
3da8a63df2
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      lib/chat/ChatPage.dart
  2. +1
    -1
      lib/chat/group_chat_view.dart

+ 1
- 1
lib/chat/ChatPage.dart Ver arquivo

@@ -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 Ver arquivo

@@ -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);


Carregando…
Cancelar
Salvar