Authored by 陈轩

发送图片 移除http:

@@ -699,9 +699,14 @@ var chat = { @@ -699,9 +699,14 @@ var chat = {
699 _drawMSG: function(viewData, cusAction = null) { 699 _drawMSG: function(viewData, cusAction = null) {
700 let chatWin = this.$chatWin[0]; 700 let chatWin = this.$chatWin[0];
701 701
  702 + if (viewData.type === 'picture') {
  703 + viewData.data.content = viewData.data.content.replace(/^http:/, '');
  704 + }
  705 +
702 // console.log(viewData); 706 // console.log(viewData);
703 let $html = $(this.messageT(viewData)); 707 let $html = $(this.messageT(viewData));
704 708
  709 +
705 this.checkTime(); 710 this.checkTime();
706 if (cusAction) { 711 if (cusAction) {
707 cusAction.apply(this, [$html]); 712 cusAction.apply(this, [$html]);