This commit is contained in:
commie
2026-01-08 05:42:44 +08:00
parent 7439a4a794
commit c153975eed
1976 changed files with 776 additions and 133 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
+23
View File
@@ -19,6 +19,29 @@ class HookController{
"nextCode"=> 0
]);
}
function callbackAfterUserRegisterCommand(Request $request): Response
{
$userID= Input('userID');
$nickname= Input('nickname');
$im = new \support\OpenImSdk\Client([
'host' => 'http://127.0.0.1:10002', // OpenIM API地址
'secret' => 'n1e5a6s6m7', // OpenIM密钥
]);
$im->message->sendBusinessNotification('system',$userID,[
'contentType' => 101,
'textElem' => [
'content' => '欢迎使用'.Config('site.name')
]
]);
return json([
"actionCode" => 0,
"errCode" => 0,
"errMsg" => "",
"errDlt" => "",
"nextCode"=> 0
]);
}
/**
* 在发送单聊消息前的回调
* @return void
View File
View File