Files
fast_response/superadmin/application/admin/controller/Wxperson.php
2025-03-27 16:24:06 +08:00

33 lines
753 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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()
{
Tools::log_to_write_txt(['查询个人信息,入参:'=>input()]);
$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']));
}
}