Files
fast_response/admin/application/api/controller/Wxgroup.php
2025-03-25 15:41:52 +08:00

39 lines
918 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/25} {14:27}
*/
namespace app\api\controller;
//微信群
use think\Db;
use wanghua\general_utility_tools_php\Mmodel;
use wanghua\general_utility_tools_php\tool\Tools;
class Wxgroup extends BaseApiAuthController
{
/**
* desc获取某群的紧急联系人
* authorwh
*/
function getEmergencyContact()
{
return Mmodel::catchJson(function (){
$chatroom_id = input('chatroom_id');//52468523601@chatroom
if(empty($chatroom_id)){
return Tools::set_fail('群id不能为空');
}
$rel_group = Db::table('fa_firmcustomer')
->where('rel_group',$chatroom_id)
->value('rel_group');
return Tools::set_ok('ok',[
'emergency_contact_wxid'=>$rel_group
]);
});
}
}