From 04102f7237efefa744090ed7c25f7b5d0807b679 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 18:11:57 +0800
Subject: [PATCH] 完成运营中心提现和运营中心权限管理
---
admin/app/api/controller/plus/business/chat/Chat.php | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/admin/app/api/controller/plus/business/chat/Chat.php b/admin/app/api/controller/plus/business/chat/Chat.php
index 76f8552..915af34 100644
--- a/admin/app/api/controller/plus/business/chat/Chat.php
+++ b/admin/app/api/controller/plus/business/chat/Chat.php
@@ -224,13 +224,12 @@
$conversationModel = new ConversationModel();
// 检查是否已存在会话
- $conversation = $conversationModel->getConversationByBusinessCard($businessCardId);
+ $conversation = $conversationModel->getConversationByBusinessCardUser($businessCardId,$userId);
if ($businessCard['user_id'] == $userId&&!$conversation) {
return $this->renderError('不能与自己建立会话');
}
if (!$conversation) {
-
// 创建新会话
$participants = [$userId, $businessCard['user_id']];
$conversationId = $conversationModel->createConversation($businessCardId, $participants);
--
Gitblit v1.9.2