This commit is contained in:
2025-06-25 16:12:51 +08:00
parent dbcc89b8fb
commit 28aec960e2
15 changed files with 2013 additions and 45 deletions

View File

@@ -2,7 +2,19 @@
namespace App\Services\GatewayWorker;
class ImService
use App\Services\Base\BaseService;
class ImService extends BaseService
{
public function bindClientIdByUserId($clientId)
{
if (empty($clientId)) {
throw new \Exception('clientId不能为空');
}
GatewayClientService::getInstance()->init()->bindUser($clientId, $this->userId);
return ['绑定成功'];
}
}