using System; /// /// 请求结构体 /// public class ReqVo { /// /// 谁(openId) /// public string uid; /// /// 功能码 /// public int ope; /// /// 命令码 /// public int cmd; /// /// 参数数组 /// public object[] paras; /// /// 时间戳 /// public int ts; /// /// 分区Id /// public int zoneid; /// /// 消息序列号 /// public int SN; /// /// token /// public string TK; /// /// 客户端版本号 /// public string CV = "unity"; private volatile static int sNbr = 0; /// /// 构造函数 /// /// 功能码 /// 命令码 /// 玩家ID /// 分区ID /// 参数数组 public ReqVo(int ope, int cmd, string uid, int zoneid, object[] paras, string tk = null) { this.ope = ope; this.cmd = cmd; this.uid = uid; this.zoneid = zoneid; this.paras = paras; this.ts = (int)UserProxy.Instance.GetCurrentUnixTimeStamp(); this.SN = sNbr++; this.TK = tk; this.CV = AndroidInteractive.Instance().GetVersionName(); // todo: 这里取客户端版本号. -gwang 2022年10月24日10:14:47 } }