public function sendCommonCmd($ip, $port, $data, $apiId = ServerApi::YUN_CHANGE_TO_GOLD) { $socket = new SocketClient($ip, $port); $ret = $socket->rpc($apiId, $data); return $ret; }