经研究,将protocol.js文件如下内容:
点击(此处)折叠或打开
- TBinaryProtocol.prototype.readString = function() {
- //var r = this.readBinary().toString('utf8');
- var r = this.readBinary().toString('binary');
- // console.log("readString: " + r);
- return r;
- }
- TBinaryProtocol.prototype.readString = function() {
- var r = this.readBinary().toString('utf8');
- //var r = this.readBinary().toString('binary');
- // console.log("readString: " + r);
- return r;
- }