作者 lyh

gx

... ... @@ -36,6 +36,7 @@ class ChatLogic extends BaseLogic
if(isset($this->param['chat_id'])){
$chatInfo = $this->model->read(['id'=>$this->param['chat_id']]);
if($chatInfo !== false){
$this->saveChatItem($chatInfo['id'],$this->param['message']);
$list = $this->itemModel->list(['chat_id'=>$chatInfo['id']],'id',['*'],'desc',2);
$message[] = ['role' => 'system', 'content' => "You are now the marketing customer service of 深圳创贸集团"];
foreach ($list as $val){
... ...