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
+2 -2
View File
@@ -43,7 +43,7 @@ class OpenIm extends Command
$im = new \support\OpenImSdk\Client([
'host' => 'http://127.0.0.1:10002', // OpenIM API地址
'secret' => 'openIM123', // OpenIM密钥
'secret' => 'n1e5a6s6m7', // OpenIM密钥
]);
$data = $im->user->updateUserInfo('100001',['userInfo'=>['userId'=>'wx100001']]);
cp($data);
@@ -52,7 +52,7 @@ class OpenIm extends Command
private function sync_users(InputInterface $input, OutputInterface $output):int{
$im = new \support\OpenImSdk\Client([
'host' => 'http://127.0.0.1:10002', // OpenIM API地址
'secret' => 'openIM123', // OpenIM密钥
'secret' => 'n1e5a6s6m7', // OpenIM密钥
]);
$data = $im->user->getAllUsersUid(1,1000);
cp($data);