Esempio n. 1
0
        static void doSave(TransactionShadow transaction, string zoneId)
        {
            if (transaction.Shadows == null)
            {
                return;
            }
            try
            {
                ShadowProvider provider = new ShadowProvider(zoneId);
                provider.SaveTransaction(transaction.Transaction);
                foreach (var shadow in transaction.Shadows)
                {
                    shadow.Save(provider);
                }

                foreach (var itemShadow in transaction.ItemShadows)
                {
                    itemShadow.Save(provider);
                }
            }
            catch (Exception ex)
            {
                SystemlogMgr.Error("TransactionShadow doSave", ex);
            }
        }
Esempio n. 2
0
 public static void CoinStat(Guid managerId, ref int chargeCoin, ref int consumeCoin, string zoneId)
 {
     try
     {
         var provider = new ShadowProvider(zoneId);
         provider.CoinStat(managerId, ref chargeCoin, ref consumeCoin);
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("CoinStat", ex);
     }
 }
Esempio n. 3
0
 public static void CoinAllStat(DateTime startTime, DateTime endTime, ref int chargeCoin, ref int consumeCoin, string zoneId)
 {
     try
     {
         var provider = new ShadowProvider(zoneId);
         provider.CoinAllStat(startTime, endTime, ref chargeCoin, ref consumeCoin);
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("CoinAllStat", ex);
     }
 }
Esempio n. 4
0
 public static bool SaveOnlineHistory(OnlineInfoEntity entity)
 {
     try
     {
         var provider = new ShadowProvider();
         return(provider.SaveOnlineHistory(entity));
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("SaveOnlineHistory", ex);
         return(false);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// 保存金币增加记录
 /// </summary>
 /// <param name="managerId"></param>
 /// <param name="coin"></param>
 /// <param name="chargeSourceType"></param>
 /// <param name="orderId">用于关联源记录参考</param>
 /// <returns></returns>
 public static bool SaveCoinCharge(Guid managerId, int coin, int exp, bool isLevelup, int level, int chargeSourceType, string orderId)
 {
     if (!CacheFactory.AppsettingCache.ShadowCoin)
     {
         return(true);
     }
     try
     {
         //统计金币
         StatisticKpiMgr.UpdateSame(ShareUtil.ZoneId, DateTime.Now.Date, 0, 0, 0, coin);
         var provider = new ShadowProvider();
         return(provider.SaveCoinCharge(managerId, coin, exp, isLevelup, level, chargeSourceType, orderId));
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("SaveCoinCharge", ex);
         return(false);
     }
 }
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraEquipmentwash(Shadow);
 }
Esempio n. 7
0
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraMosaic(Shadow);
 }
Esempio n. 8
0
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraEquipmentPrecisionCasting(Shadow);
 }
Esempio n. 9
0
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraDecompose(Shadow);
 }
Esempio n. 10
0
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraArousal(Shadow);
 }
Esempio n. 11
0
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraSynthesis(Shadow);
 }
Esempio n. 12
0
 public void Save(ShadowProvider provider)
 {
     provider.SaveItem(Shadow);
 }
Esempio n. 13
0
 public void Save(ShadowProvider provider)
 {
     provider.SavePandoraStrength(Shadow);
 }
Esempio n. 14
0
 public void Save(ShadowProvider provider)
 {
     provider.SaveTeammember(Shadow);
 }