public void SetData(Farm_Game_PaySucc_Anw p) { MsgUnit msg = new MsgUnit(); msg.type = 4; msg.id = Convert.ToInt32(p.Ordernum); System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区 DateTime dt = startTime.AddSeconds(Convert.ToInt32(p.Time)); msg.sendTime = dt.ToString("HH:mm"); string c = ""; if (p.Type == 1) { c += "登录支付成功\n"; } else if (p.Type == 2) { c += "兑换成功\n"; } c += ("订单号:" + p.Ordernum + "\n"); c += ("支付的邮费:" + p.Money + "\n"); c += ("时间:" + msg.sendTime + "\n"); c += ("物品信息:"); for (int i = 0; i < p.ObjsCount; i++) { BaseAtrribute ba = LoadObjctDateConfig.Instance.GetAtrribute(p.ObjsList[i].Id); c += (ba.Name + "x" + p.ObjsList[i].Count + "\n"); } msg.content = c; orders.Add(msg); //SaveData(msg); }
void SetServerData(Farm_Game_PaySucc_Anw p) { }