新增ai聊天更新
This commit is contained in:
@@ -26,10 +26,19 @@ class PyappLofic
|
||||
* author:wh
|
||||
* @throws \Exception
|
||||
*/
|
||||
function setFollowupModel($chatroom_id,$return_record){
|
||||
function setFollowupModel($url,$chatroom_id,$return_record){
|
||||
|
||||
$base_url = SundryConfig::val('py_app_base_url');
|
||||
$url = $base_url.'/vip_groups/follow-up';
|
||||
if (empty($url)){
|
||||
throw new \Exception('获取url失败');
|
||||
}
|
||||
$base_url = parse_url($url);
|
||||
if (!is_array($base_url) || !isset($base_url['scheme']) || !isset($base_url['host'])) {
|
||||
throw new \Exception("URL解析失败: 输入的URL格式不正确 - {$url}");
|
||||
}
|
||||
$url = $base_url['scheme'].'://'.$base_url['host'].'/vip_groups/follow-up';
|
||||
|
||||
// $base_url = SundryConfig::val('py_app_base_url');
|
||||
// $url = $base_url.'/vip_groups/follow-up';
|
||||
$post_data = [
|
||||
'chatroom_id' => $chatroom_id,
|
||||
'is_follow_up' => true,
|
||||
|
||||
Reference in New Issue
Block a user