getClientIdByUid是GatewayWorker2.0才有的,更新到新版本就好了。 更新注意事項(xiàng)見(jiàn) http://workerman.net/gatewaydoc/appendices/upgrade.html