fixed
This commit is contained in:
39
admin/application/api/controller/Wxgroup.php
Normal file
39
admin/application/api/controller/Wxgroup.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*
|
||||
* description:
|
||||
* author:wh
|
||||
* 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:获取某群的紧急联系人
|
||||
* author:wh
|
||||
*/
|
||||
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
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user