fixed bugs

This commit is contained in:
邰广银 2017-11-02 15:37:46 +08:00
parent 174743a0e4
commit 33316c9112
2 changed files with 8 additions and 8 deletions

View File

@ -7,8 +7,8 @@ $(function(){
function insert_client_html(msg){
var time = dateFormat();
if(msg.datetime){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
if(msg.time){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
}
if(!msg.chat_type){
msg.chat_type = 'text';
@ -38,8 +38,8 @@ $(function(){
function insert_agent_html(msg){
var time = dateFormat();
if(msg.datetime){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
if(msg.time){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
}
if(!msg.chat_type){
msg.chat_type = 'text';

View File

@ -52,8 +52,8 @@ layui.use(['layer', 'form', 'jquery'], function () {
function insert_agent_html(msg){
var time = dateFormat();
if(msg.datetime){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
if(msg.time){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
}
if(!msg.chat_type){
msg.chat_type = 'text';
@ -83,8 +83,8 @@ layui.use(['layer', 'form', 'jquery'], function () {
function insert_client_html(msg){
var time = dateFormat();
if(msg.datetime){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
if(msg.time){
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
}
if(!msg.chat_type){
msg.chat_type = 'text';