$chatroom_id, 'followup_model' => true, 'follow_up_content'=>$follow_up_content ]; $res = Curl::curl_post($url, $post_data); if(empty($res['data'])){ throw new \Exception('设置回访模式失败'); } $res_data = json_decode($res['data'], true); return $res_data; } /** * desc:关闭回访模式 * author:wh * @throws \Exception */ function closeFollowupModel($chatroom_id){ $base_url = config('py_app_base_url.base_url'); $url = $base_url.'/vip_groups/follow-up'; $post_data = [ 'chatroom_id' => $chatroom_id, 'followup_model' => false, ]; $res = Curl::curl_post($url, $post_data); if(empty($res['data'])){ throw new \Exception('关闭回访模式失败'); } $res_data = json_decode($res['data'], true); return $res_data; } }