This commit is contained in:
2025-03-29 14:00:36 +08:00
parent 744815db87
commit 54e1e0c937
9 changed files with 18 additions and 18 deletions

View File

@@ -9,7 +9,7 @@
namespace app\admin\controller;
use app\api\logic\GechatroomLogic;
use app\api\logic\GechatroomWechatLogic;
use think\Controller;
class Gechatroom extends Controller
@@ -37,7 +37,7 @@ class Gechatroom extends Controller
if(empty($ai_config_id)){
throw new \Exception('ai_config_id不能为空');
}
$logic = new GechatroomLogic();
$logic = new GechatroomWechatLogic();
$data = $logic->getChatroomList($ai_config_id);
//dump($data);die;
//缓存群成员列表
@@ -65,7 +65,7 @@ class Gechatroom extends Controller
if(empty($ai_config_id)){
throw new \Exception('ai_config_id不能为空');
}
$data = (new GechatroomLogic())->getChatroomList($ai_config_id);
$data = (new GechatroomWechatLogic())->getChatroomList($ai_config_id);
//缓存群成员列表
cache('cache_getChatroomList_data'.session_admin_firm_id(),$data['memberList'],86400);
$memberList = $data[$chatroom_id]['memberList'];