作者 lyh

gx

... ... @@ -36,7 +36,7 @@ class ChatLogic extends BaseLogic
if(isset($this->param['chat_id'])){
$chatInfo = $this->model->read(['id'=>$this->param['chat_id']]);
if($chatInfo !== false){
$list = $this->itemModel->list(['chat_id'=>$chatInfo['id'],'id',['*'],'desc',2]);
$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){
if($val['is_reply'] == 2){
... ...