协议调试

This commit is contained in:
chen wei bo
2025-09-09 18:16:37 +08:00
parent f9f2077665
commit e89d515bde
10 changed files with 468 additions and 32 deletions
+272 -9
View File
@@ -2585,6 +2585,8 @@ $root.cs = (function() {
* Properties of a CSUnlockGirlRes.
* @memberof cs
* @interface ICSUnlockGirlRes
* @property {number|Long|null} [balance] CSUnlockGirlRes balance
* @property {number|Long|null} [vipExpire] CSUnlockGirlRes vipExpire
*/
/**
@@ -2602,6 +2604,22 @@ $root.cs = (function() {
this[keys[i]] = properties[keys[i]];
}
/**
* CSUnlockGirlRes balance.
* @member {number|Long} balance
* @memberof cs.CSUnlockGirlRes
* @instance
*/
CSUnlockGirlRes.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* CSUnlockGirlRes vipExpire.
* @member {number|Long} vipExpire
* @memberof cs.CSUnlockGirlRes
* @instance
*/
CSUnlockGirlRes.prototype.vipExpire = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* Creates a new CSUnlockGirlRes instance using the specified properties.
* @function create
@@ -2626,6 +2644,10 @@ $root.cs = (function() {
CSUnlockGirlRes.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.balance);
if (message.vipExpire != null && Object.hasOwnProperty.call(message, "vipExpire"))
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.vipExpire);
return writer;
};
@@ -2662,6 +2684,14 @@ $root.cs = (function() {
if (tag === error)
break;
switch (tag >>> 3) {
case 1: {
message.balance = reader.int64();
break;
}
case 2: {
message.vipExpire = reader.int64();
break;
}
default:
reader.skipType(tag & 7);
break;
@@ -2697,6 +2727,12 @@ $root.cs = (function() {
CSUnlockGirlRes.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.balance != null && message.hasOwnProperty("balance"))
if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
return "balance: integer|Long expected";
if (message.vipExpire != null && message.hasOwnProperty("vipExpire"))
if (!$util.isInteger(message.vipExpire) && !(message.vipExpire && $util.isInteger(message.vipExpire.low) && $util.isInteger(message.vipExpire.high)))
return "vipExpire: integer|Long expected";
return null;
};
@@ -2711,7 +2747,26 @@ $root.cs = (function() {
CSUnlockGirlRes.fromObject = function fromObject(object) {
if (object instanceof $root.cs.CSUnlockGirlRes)
return object;
return new $root.cs.CSUnlockGirlRes();
var message = new $root.cs.CSUnlockGirlRes();
if (object.balance != null)
if ($util.Long)
(message.balance = $util.Long.fromValue(object.balance)).unsigned = false;
else if (typeof object.balance === "string")
message.balance = parseInt(object.balance, 10);
else if (typeof object.balance === "number")
message.balance = object.balance;
else if (typeof object.balance === "object")
message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber();
if (object.vipExpire != null)
if ($util.Long)
(message.vipExpire = $util.Long.fromValue(object.vipExpire)).unsigned = false;
else if (typeof object.vipExpire === "string")
message.vipExpire = parseInt(object.vipExpire, 10);
else if (typeof object.vipExpire === "number")
message.vipExpire = object.vipExpire;
else if (typeof object.vipExpire === "object")
message.vipExpire = new $util.LongBits(object.vipExpire.low >>> 0, object.vipExpire.high >>> 0).toNumber();
return message;
};
/**
@@ -2723,8 +2778,33 @@ $root.cs = (function() {
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
CSUnlockGirlRes.toObject = function toObject() {
return {};
CSUnlockGirlRes.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.balance = options.longs === String ? "0" : 0;
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.vipExpire = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.vipExpire = options.longs === String ? "0" : 0;
}
if (message.balance != null && message.hasOwnProperty("balance"))
if (typeof message.balance === "number")
object.balance = options.longs === String ? String(message.balance) : message.balance;
else
object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber() : message.balance;
if (message.vipExpire != null && message.hasOwnProperty("vipExpire"))
if (typeof message.vipExpire === "number")
object.vipExpire = options.longs === String ? String(message.vipExpire) : message.vipExpire;
else
object.vipExpire = options.longs === String ? $util.Long.prototype.toString.call(message.vipExpire) : options.longs === Number ? new $util.LongBits(message.vipExpire.low >>> 0, message.vipExpire.high >>> 0).toNumber() : message.vipExpire;
return object;
};
/**
@@ -3028,6 +3108,8 @@ $root.cs = (function() {
* Properties of a CSUnlockResourceRes.
* @memberof cs
* @interface ICSUnlockResourceRes
* @property {number|Long|null} [balance] CSUnlockResourceRes balance
* @property {number|Long|null} [vipExpire] CSUnlockResourceRes vipExpire
*/
/**
@@ -3045,6 +3127,22 @@ $root.cs = (function() {
this[keys[i]] = properties[keys[i]];
}
/**
* CSUnlockResourceRes balance.
* @member {number|Long} balance
* @memberof cs.CSUnlockResourceRes
* @instance
*/
CSUnlockResourceRes.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* CSUnlockResourceRes vipExpire.
* @member {number|Long} vipExpire
* @memberof cs.CSUnlockResourceRes
* @instance
*/
CSUnlockResourceRes.prototype.vipExpire = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* Creates a new CSUnlockResourceRes instance using the specified properties.
* @function create
@@ -3069,6 +3167,10 @@ $root.cs = (function() {
CSUnlockResourceRes.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.balance);
if (message.vipExpire != null && Object.hasOwnProperty.call(message, "vipExpire"))
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.vipExpire);
return writer;
};
@@ -3105,6 +3207,14 @@ $root.cs = (function() {
if (tag === error)
break;
switch (tag >>> 3) {
case 1: {
message.balance = reader.int64();
break;
}
case 2: {
message.vipExpire = reader.int64();
break;
}
default:
reader.skipType(tag & 7);
break;
@@ -3140,6 +3250,12 @@ $root.cs = (function() {
CSUnlockResourceRes.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.balance != null && message.hasOwnProperty("balance"))
if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
return "balance: integer|Long expected";
if (message.vipExpire != null && message.hasOwnProperty("vipExpire"))
if (!$util.isInteger(message.vipExpire) && !(message.vipExpire && $util.isInteger(message.vipExpire.low) && $util.isInteger(message.vipExpire.high)))
return "vipExpire: integer|Long expected";
return null;
};
@@ -3154,7 +3270,26 @@ $root.cs = (function() {
CSUnlockResourceRes.fromObject = function fromObject(object) {
if (object instanceof $root.cs.CSUnlockResourceRes)
return object;
return new $root.cs.CSUnlockResourceRes();
var message = new $root.cs.CSUnlockResourceRes();
if (object.balance != null)
if ($util.Long)
(message.balance = $util.Long.fromValue(object.balance)).unsigned = false;
else if (typeof object.balance === "string")
message.balance = parseInt(object.balance, 10);
else if (typeof object.balance === "number")
message.balance = object.balance;
else if (typeof object.balance === "object")
message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber();
if (object.vipExpire != null)
if ($util.Long)
(message.vipExpire = $util.Long.fromValue(object.vipExpire)).unsigned = false;
else if (typeof object.vipExpire === "string")
message.vipExpire = parseInt(object.vipExpire, 10);
else if (typeof object.vipExpire === "number")
message.vipExpire = object.vipExpire;
else if (typeof object.vipExpire === "object")
message.vipExpire = new $util.LongBits(object.vipExpire.low >>> 0, object.vipExpire.high >>> 0).toNumber();
return message;
};
/**
@@ -3166,8 +3301,33 @@ $root.cs = (function() {
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
CSUnlockResourceRes.toObject = function toObject() {
return {};
CSUnlockResourceRes.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.balance = options.longs === String ? "0" : 0;
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.vipExpire = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.vipExpire = options.longs === String ? "0" : 0;
}
if (message.balance != null && message.hasOwnProperty("balance"))
if (typeof message.balance === "number")
object.balance = options.longs === String ? String(message.balance) : message.balance;
else
object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber() : message.balance;
if (message.vipExpire != null && message.hasOwnProperty("vipExpire"))
if (typeof message.vipExpire === "number")
object.vipExpire = options.longs === String ? String(message.vipExpire) : message.vipExpire;
else
object.vipExpire = options.longs === String ? $util.Long.prototype.toString.call(message.vipExpire) : options.longs === Number ? new $util.LongBits(message.vipExpire.low >>> 0, message.vipExpire.high >>> 0).toNumber() : message.vipExpire;
return object;
};
/**
@@ -3434,6 +3594,9 @@ $root.cs = (function() {
* Properties of a CSBuyGoodRes.
* @memberof cs
* @interface ICSBuyGoodRes
* @property {number|Long|null} [balance] CSBuyGoodRes balance
* @property {number|Long|null} [vipExpire] CSBuyGoodRes vipExpire
* @property {number|null} [chatRemainCount] CSBuyGoodRes chatRemainCount
*/
/**
@@ -3451,6 +3614,30 @@ $root.cs = (function() {
this[keys[i]] = properties[keys[i]];
}
/**
* CSBuyGoodRes balance.
* @member {number|Long} balance
* @memberof cs.CSBuyGoodRes
* @instance
*/
CSBuyGoodRes.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* CSBuyGoodRes vipExpire.
* @member {number|Long} vipExpire
* @memberof cs.CSBuyGoodRes
* @instance
*/
CSBuyGoodRes.prototype.vipExpire = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* CSBuyGoodRes chatRemainCount.
* @member {number} chatRemainCount
* @memberof cs.CSBuyGoodRes
* @instance
*/
CSBuyGoodRes.prototype.chatRemainCount = 0;
/**
* Creates a new CSBuyGoodRes instance using the specified properties.
* @function create
@@ -3475,6 +3662,12 @@ $root.cs = (function() {
CSBuyGoodRes.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.balance);
if (message.vipExpire != null && Object.hasOwnProperty.call(message, "vipExpire"))
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.vipExpire);
if (message.chatRemainCount != null && Object.hasOwnProperty.call(message, "chatRemainCount"))
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.chatRemainCount);
return writer;
};
@@ -3511,6 +3704,18 @@ $root.cs = (function() {
if (tag === error)
break;
switch (tag >>> 3) {
case 1: {
message.balance = reader.int64();
break;
}
case 2: {
message.vipExpire = reader.int64();
break;
}
case 3: {
message.chatRemainCount = reader.int32();
break;
}
default:
reader.skipType(tag & 7);
break;
@@ -3546,6 +3751,15 @@ $root.cs = (function() {
CSBuyGoodRes.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.balance != null && message.hasOwnProperty("balance"))
if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
return "balance: integer|Long expected";
if (message.vipExpire != null && message.hasOwnProperty("vipExpire"))
if (!$util.isInteger(message.vipExpire) && !(message.vipExpire && $util.isInteger(message.vipExpire.low) && $util.isInteger(message.vipExpire.high)))
return "vipExpire: integer|Long expected";
if (message.chatRemainCount != null && message.hasOwnProperty("chatRemainCount"))
if (!$util.isInteger(message.chatRemainCount))
return "chatRemainCount: integer expected";
return null;
};
@@ -3560,7 +3774,28 @@ $root.cs = (function() {
CSBuyGoodRes.fromObject = function fromObject(object) {
if (object instanceof $root.cs.CSBuyGoodRes)
return object;
return new $root.cs.CSBuyGoodRes();
var message = new $root.cs.CSBuyGoodRes();
if (object.balance != null)
if ($util.Long)
(message.balance = $util.Long.fromValue(object.balance)).unsigned = false;
else if (typeof object.balance === "string")
message.balance = parseInt(object.balance, 10);
else if (typeof object.balance === "number")
message.balance = object.balance;
else if (typeof object.balance === "object")
message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber();
if (object.vipExpire != null)
if ($util.Long)
(message.vipExpire = $util.Long.fromValue(object.vipExpire)).unsigned = false;
else if (typeof object.vipExpire === "string")
message.vipExpire = parseInt(object.vipExpire, 10);
else if (typeof object.vipExpire === "number")
message.vipExpire = object.vipExpire;
else if (typeof object.vipExpire === "object")
message.vipExpire = new $util.LongBits(object.vipExpire.low >>> 0, object.vipExpire.high >>> 0).toNumber();
if (object.chatRemainCount != null)
message.chatRemainCount = object.chatRemainCount | 0;
return message;
};
/**
@@ -3572,8 +3807,36 @@ $root.cs = (function() {
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
CSBuyGoodRes.toObject = function toObject() {
return {};
CSBuyGoodRes.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.balance = options.longs === String ? "0" : 0;
if ($util.Long) {
var long = new $util.Long(0, 0, false);
object.vipExpire = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.vipExpire = options.longs === String ? "0" : 0;
object.chatRemainCount = 0;
}
if (message.balance != null && message.hasOwnProperty("balance"))
if (typeof message.balance === "number")
object.balance = options.longs === String ? String(message.balance) : message.balance;
else
object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber() : message.balance;
if (message.vipExpire != null && message.hasOwnProperty("vipExpire"))
if (typeof message.vipExpire === "number")
object.vipExpire = options.longs === String ? String(message.vipExpire) : message.vipExpire;
else
object.vipExpire = options.longs === String ? $util.Long.prototype.toString.call(message.vipExpire) : options.longs === Number ? new $util.LongBits(message.vipExpire.low >>> 0, message.vipExpire.high >>> 0).toNumber() : message.vipExpire;
if (message.chatRemainCount != null && message.hasOwnProperty("chatRemainCount"))
object.chatRemainCount = message.chatRemainCount;
return object;
};
/**