11
This commit is contained in:
@@ -49,10 +49,6 @@ class User extends Command
|
||||
return 0;
|
||||
}
|
||||
function login(InputInterface $input, OutputInterface $output){
|
||||
// $IM = new \support\OpenImSdk\Client([
|
||||
// 'host' => 'http://127.0.0.1:10002', // OpenIM API地址
|
||||
// 'secret' => 'n1e5a6s6m7', // OpenIM密钥
|
||||
// ]);
|
||||
$user_id = $input->getOption('user_id');
|
||||
if(!$user_id){
|
||||
return false;
|
||||
@@ -133,8 +129,8 @@ class User extends Command
|
||||
return $this->sdk;
|
||||
}
|
||||
$this->sdk = new \support\OpenImSdk\Client([
|
||||
'host' => 'http://127.0.0.1:10002', // OpenIM API地址
|
||||
'secret' => 'n1e5a6s6m7', // OpenIM密钥
|
||||
'host' => config('openim.server'), // OpenIM API地址
|
||||
'secret' => config('openim.secret'), // OpenIM密钥
|
||||
]);
|
||||
return $this->sdk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user