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\GewechatFriendsLogic;
use app\api\logic\GewechatFriendsWechatLogic;
use think\Controller;
class Gewechatfriends extends Controller
@@ -32,7 +32,7 @@ class Gewechatfriends extends Controller
$data = cache('cache_getFriendDetailList_data'.session_admin_firm_id());
return json(['list' => $data, 'total' => count($data)]);
}
$obj_logic = new GewechatFriendsLogic();
$obj_logic = new GewechatFriendsWechatLogic();
$ai_config_id = input('ai_config_id');
if(empty($ai_config_id)){
throw new \Exception('请先配置AI客服');
@@ -54,7 +54,7 @@ class Gewechatfriends extends Controller
$data = cache('cache_getFriendDetailList_data'.session_admin_firm_id());
return json(['list' => $data, 'total' => count($data)]);
}
$obj_logic = new GewechatFriendsLogic();
$obj_logic = new GewechatFriendsWechatLogic();
$ai_config_id = input('ai_config_id');
$obj_logic->setBaseUrlByAiCustmerConfig($ai_config_id);
$res = $obj_logic->getFriendDetailList();