|
...
|
...
|
@@ -122,8 +122,6 @@ class ChatLogic extends BaseLogic |
|
|
|
$saveData = [
|
|
|
|
'user_id'=>$this->user['id'],
|
|
|
|
'input_content'=>mb_substr($message, 0, 50, "UTF-8").'...',
|
|
|
|
'last_created_at'=>date('Y-m-d H:i:s'),
|
|
|
|
'last_input_content'=>mb_substr($message, 0, 50, "UTF-8").'...'
|
|
|
|
];
|
|
|
|
return $this->model->addReturnId($saveData);
|
|
|
|
}
|
|
...
|
...
|
@@ -145,7 +143,7 @@ class ChatLogic extends BaseLogic |
|
|
|
];
|
|
|
|
//同时更改主任务
|
|
|
|
$this->itemModel->addReturnId($saveData);
|
|
|
|
$data = ['last_created_at'=>date('Y-m-d H:i:s'),'last_input_content'=>mb_substr($message, 0, 50, "UTF-8")];
|
|
|
|
$data = ['last_created_at'=>date('Y-m-d H:i:s'),'last_input_content'=>mb_substr($message, 0, 50, "UTF-8").'...'];
|
|
|
|
return $this->model->edit($data,['id'=>$id]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|