正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -36,7 +36,7 @@ class ChatLogic extends BaseLogic | @@ -36,7 +36,7 @@ class ChatLogic extends BaseLogic | ||
| 36 | if(isset($this->param['chat_id'])){ | 36 | if(isset($this->param['chat_id'])){ |
| 37 | $chatInfo = $this->model->read(['id'=>$this->param['chat_id']]); | 37 | $chatInfo = $this->model->read(['id'=>$this->param['chat_id']]); |
| 38 | if($chatInfo !== false){ | 38 | if($chatInfo !== false){ |
| 39 | - $list = $this->itemModel->list(['chat_id'=>$chatInfo['id'],'id',['*'],'desc',2]); | 39 | + $list = $this->itemModel->list(['chat_id'=>$chatInfo['id']],'id',['*'],'desc',2); |
| 40 | $message[] = ['role' => 'system', 'content' => "You are now the marketing customer service of 深圳创贸集团"]; | 40 | $message[] = ['role' => 'system', 'content' => "You are now the marketing customer service of 深圳创贸集团"]; |
| 41 | foreach ($list as $val){ | 41 | foreach ($list as $val){ |
| 42 | if($val['is_reply'] == 2){ | 42 | if($val['is_reply'] == 2){ |
-
请 注册 或 登录 后发表评论