测试
This commit is contained in:
@@ -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 ['绑定成功'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user