7
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+23
@@ -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
|
||||
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user