fixed
This commit is contained in:
@@ -15,7 +15,7 @@ class BaseLogic
|
||||
{
|
||||
public $base_url = '';
|
||||
|
||||
function setBaseUrl($ai_config_id){
|
||||
function setBaseUrlByAiCustmerConfig($ai_config_id){
|
||||
//$ai_config_id = input('ai_config_id');
|
||||
$conf = Db::table('fa_aicustomerservice')
|
||||
->where('id',$ai_config_id)
|
||||
@@ -29,6 +29,9 @@ class BaseLogic
|
||||
$this->base_url = $conf['server_url'];
|
||||
return $conf['server_url'];
|
||||
}
|
||||
function setBaseUrl($base_url){
|
||||
$this->base_url = $base_url;
|
||||
}
|
||||
|
||||
function curl_post_json($url, array $postdata, $header=[]) {
|
||||
if(empty($this->base_url)){
|
||||
|
||||
@@ -27,7 +27,7 @@ class GechatroomLogic extends BaseLogic
|
||||
//$base_url = config('gewechat.base_url');
|
||||
//去查询群名称
|
||||
$logic = new GewechatFriendsLogic();
|
||||
$logic->setBaseUrl($ai_config_id);
|
||||
$logic->setBaseUrlByAiCustmerConfig($ai_config_id);
|
||||
$wxids_arr = $logic->getFriendWxIdsList();
|
||||
$chatrooms = $wxids_arr['data']['chatrooms'];
|
||||
$url = '/group/getChatroomInfo';
|
||||
|
||||
25
admin/application/api/logic/PersonalLogic.php
Normal file
25
admin/application/api/logic/PersonalLogic.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
* description:
|
||||
* author:wh
|
||||
* email:
|
||||
* createTime:{2025/3/27} {14:09}
|
||||
*/
|
||||
|
||||
namespace app\api\logic;
|
||||
|
||||
|
||||
use wanghua\general_utility_tools_php\tool\Tools;
|
||||
|
||||
class PersonalLogic extends BaseLogic
|
||||
{
|
||||
function getProfile()
|
||||
{
|
||||
$url = '/personal/getProfile';
|
||||
$post_data = [];
|
||||
Tools::log_to_write_txt(['查询微信好友列表[带昵称],入参:$post_data'=>$post_data]);
|
||||
$res = $this->curl_post_json($url, $post_data);
|
||||
Tools::log_to_write_txt(['查询微信好友列表[带昵称],出参:$res'=>$res]);
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user