21 lines
411 B
PHP
21 lines
411 B
PHP
<?php
|
|
|
|
namespace App\Services\GatewayWorker;
|
|
|
|
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 ['绑定成功'];
|
|
}
|
|
}
|