This commit is contained in:
2026-04-23 07:33:28 +08:00
parent 24273db8dd
commit d0e34f36bd
3 changed files with 8 additions and 19 deletions
+1 -13
View File
@@ -20,20 +20,8 @@ class HookController{
$userID= Input('userID');
$nickname= Input('nickname');
$users = Input('users');
$im = new \support\OpenImSdk\Client([
'host' => config('openim.server'), // OpenIM API地址
'secret' => config('openim.secret'), // OpenIM密钥
]);
foreach($users as $k=>$v){
// 'userID' => '0EO9K107ON',
// 'nickname' => '坏蛋',
// 'faceURL' => '/static/img/avatar.png',
// 'ex' => '',
// 'createTime' => 0,
// 'appMangerLevel' => 0,
// 'globalRecvMsgOpt' => 0,
$im->message->sendBusinessNotification('official_team',$v['userID'],[
$this->getSdk()->message->sendBusinessNotification('SystemOfficialTeam',$v['userID'],[
'contentType' => 101,
'textElem' => [
'content' => '欢迎使用'.Config('site.name')