fixed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user