linkdood-web-sdk 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/thrift/lib/thrift.js
CHANGED
|
@@ -331,7 +331,7 @@ escapedString+="\\t";// write out as: \t"
|
|
|
331
331
|
*/ /**
|
|
332
332
|
* Deserializes the beginning of a message.
|
|
333
333
|
* @returns {AnonReadMessageBeginReturn}
|
|
334
|
-
*/readMessageBegin:function readMessageBegin(){this.rstack=[];this.rpos=[];if(typeof JSON!=="undefined"&&typeof JSON.parse==="function"){var text=this.transport.readAll().replace(/(\\"(encryptUser|parentAdminUserId|sendUserId|receiveUserId|groupId|groupID)\\":)\s*"(\d+)"/g,function(text,p1,p2,p3){return p1+"\\\""+p3+"\\\""});try{this.robj=JSON.parse(text)}catch(e){console.log("IM-WB-SDK readMessageBegin JSON Error:"+text)}}else if(typeof jQuery!=="undefined"){this.robj=jQuery.parseJSON(this.transport.readAll())}else{this.robj=eval(this.transport.readAll())}var r={};var version=this.robj.shift();if(version!=Thrift.Protocol.Version){throw"Wrong thrift protocol version: "+version}r.fname=this.robj.shift();r.mtype=this.robj.shift();r.rseqid=this.robj.shift();//get to the main obj
|
|
334
|
+
*/readMessageBegin:function readMessageBegin(){this.rstack=[];this.rpos=[];if(typeof JSON!=="undefined"&&typeof JSON.parse==="function"){var text=this.transport.readAll().replace(/(\\"(VrvUserDef|deviceType|encryptUser|parentAdminUserId|sendUserId|receiveUserId|userId|userID|groupId|groupID)\\":)\s*"(\d+)"/g,function(text,p1,p2,p3){return p1+"\\\""+p3+"\\\""});try{this.robj=JSON.parse(text)}catch(e){console.log("IM-WB-SDK readMessageBegin JSON Error:"+text)}}else if(typeof jQuery!=="undefined"){this.robj=jQuery.parseJSON(this.transport.readAll())}else{this.robj=eval(this.transport.readAll())}var r={};var version=this.robj.shift();if(version!=Thrift.Protocol.Version){throw"Wrong thrift protocol version: "+version}r.fname=this.robj.shift();r.mtype=this.robj.shift();r.rseqid=this.robj.shift();//get to the main obj
|
|
335
335
|
this.rstack.push(this.robj.shift());return r},/** Deserializes the end of a message. */readMessageEnd:function readMessageEnd(){},/**
|
|
336
336
|
* Deserializes the beginning of a struct.
|
|
337
337
|
* @param {string} [name] - The name of the struct (ignored)
|
|
@@ -77363,7 +77363,7 @@ Thrift.Protocol.prototype = {
|
|
|
77363
77363
|
this.rpos = [];
|
|
77364
77364
|
|
|
77365
77365
|
if (typeof JSON !== 'undefined' && typeof JSON.parse === 'function') {
|
|
77366
|
-
var text = this.transport.readAll().replace(/(\\"(VrvUserDef|deviceType|encryptUser|parentAdminUserId|sendUserId|receiveUserId|userID|groupId|groupID)\\":)\s*"(\d+)"/g, function(text, p1, p2, p3){
|
|
77366
|
+
var text = this.transport.readAll().replace(/(\\"(VrvUserDef|deviceType|encryptUser|parentAdminUserId|sendUserId|receiveUserId|userId|userID|groupId|groupID)\\":)\s*"(\d+)"/g, function(text, p1, p2, p3){
|
|
77367
77367
|
return p1 + '\\"'+ p3 +'\\"';
|
|
77368
77368
|
});
|
|
77369
77369
|
|