Esempio n. 1
0
        /// <summary>
        /// -1:掉落,1增加,2使用,3出售,4出售删除 5合成,6购回
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="itemID"></param>
        /// <param name="num"></param>
        /// <param name="itemLv"></param>
        /// <param name="itemStatus"></param>
        public static void AddItemLog(string userID, int itemID, int num, short itemLv, int itemStatus, string useritemID)
        {
            var itemLog = new UserItemLog();

            itemLog.LogID      = Guid.NewGuid().ToString();
            itemLog.ItemID     = itemID;
            itemLog.UserID     = userID;
            itemLog.ItemStatus = (short)itemStatus;
            itemLog.ItemLv     = itemLv;
            itemLog.Num        = num;
            itemLog.CreateDate = DateTime.Now;
            itemLog.UserItemID = useritemID;
            var sender = DataSyncManager.GetDataSender();

            sender.Send(itemLog);
        }
Esempio n. 2
0
 /// <summary>
 /// -1:掉落,1增加,2使用,3出售,4出售删除 5合成,6购回
 /// </summary>
 /// <param name="userID"></param>
 /// <param name="itemID"></param>
 /// <param name="num"></param>
 /// <param name="itemLv"></param>                     
 /// <param name="itemStatus"></param>
 public static void AddItemLog(string userID, int itemID, int num, short itemLv, int itemStatus, string useritemID)
 {
     var itemLog = new UserItemLog();
     itemLog.LogID = Guid.NewGuid().ToString();
     itemLog.ItemID = itemID;
     itemLog.UserID = userID;
     itemLog.ItemStatus = (short)itemStatus;
     itemLog.ItemLv = itemLv;
     itemLog.Num = num;
     itemLog.CreateDate = DateTime.Now;
     itemLog.UserItemID = useritemID;
     var sender = DataSyncManager.GetDataSender();
     sender.Send(itemLog);
 }