This commit is contained in:
2025-03-25 15:41:52 +08:00
parent e0f8eb7b14
commit 3b40995173
24 changed files with 1143 additions and 14 deletions

View File

@@ -0,0 +1,39 @@
<?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
]);
});
}
}