fixed bugs
This commit is contained in:
parent
174743a0e4
commit
33316c9112
@ -7,8 +7,8 @@ $(function(){
|
|||||||
|
|
||||||
function insert_client_html(msg){
|
function insert_client_html(msg){
|
||||||
var time = dateFormat();
|
var time = dateFormat();
|
||||||
if(msg.datetime){
|
if(msg.time){
|
||||||
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
|
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
|
||||||
}
|
}
|
||||||
if(!msg.chat_type){
|
if(!msg.chat_type){
|
||||||
msg.chat_type = 'text';
|
msg.chat_type = 'text';
|
||||||
@ -38,8 +38,8 @@ $(function(){
|
|||||||
|
|
||||||
function insert_agent_html(msg){
|
function insert_agent_html(msg){
|
||||||
var time = dateFormat();
|
var time = dateFormat();
|
||||||
if(msg.datetime){
|
if(msg.time){
|
||||||
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
|
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
|
||||||
}
|
}
|
||||||
if(!msg.chat_type){
|
if(!msg.chat_type){
|
||||||
msg.chat_type = 'text';
|
msg.chat_type = 'text';
|
||||||
|
@ -52,8 +52,8 @@ layui.use(['layer', 'form', 'jquery'], function () {
|
|||||||
|
|
||||||
function insert_agent_html(msg){
|
function insert_agent_html(msg){
|
||||||
var time = dateFormat();
|
var time = dateFormat();
|
||||||
if(msg.datetime){
|
if(msg.time){
|
||||||
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
|
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
|
||||||
}
|
}
|
||||||
if(!msg.chat_type){
|
if(!msg.chat_type){
|
||||||
msg.chat_type = 'text';
|
msg.chat_type = 'text';
|
||||||
@ -83,8 +83,8 @@ layui.use(['layer', 'form', 'jquery'], function () {
|
|||||||
|
|
||||||
function insert_client_html(msg){
|
function insert_client_html(msg){
|
||||||
var time = dateFormat();
|
var time = dateFormat();
|
||||||
if(msg.datetime){
|
if(msg.time){
|
||||||
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.datetime));
|
time = dateFormat("yyyy-MM-dd hh:mm:ss",new Date(msg.time));
|
||||||
}
|
}
|
||||||
if(!msg.chat_type){
|
if(!msg.chat_type){
|
||||||
msg.chat_type = 'text';
|
msg.chat_type = 'text';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user