This commit is contained in:
2025-03-27 16:18:01 +08:00
parent 9d22766326
commit 0b297d17ec
4 changed files with 93 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
<?php
/*
* description
* authorwh
* email
* createTime{2025/3/27} {14:01}
*/
namespace app\admin\controller;
use app\api\logic\PersonalLogic;
use think\Controller;
use wanghua\general_utility_tools_php\tool\Tools;
class Wxperson extends Controller
{
//personal/getProfile
//查询个人信息
public function getProfile()
{
$logic = new PersonalLogic();
$base_url = input('base_url');
if(empty($base_url)){
throw new \Exception('请先配置AI客服');
}
$logic->setBaseUrl($base_url);
$res = $logic->getProfile();
return json(Tools::set_ok('ok', $res['data']));
}
}