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); } }
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); } }
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); } }
public static bool SaveOnlineHistory(OnlineInfoEntity entity) { try { var provider = new ShadowProvider(); return(provider.SaveOnlineHistory(entity)); } catch (Exception ex) { SystemlogMgr.Error("SaveOnlineHistory", ex); return(false); } }
/// <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); }
public void Save(ShadowProvider provider) { provider.SavePandoraMosaic(Shadow); }
public void Save(ShadowProvider provider) { provider.SavePandoraEquipmentPrecisionCasting(Shadow); }
public void Save(ShadowProvider provider) { provider.SavePandoraDecompose(Shadow); }
public void Save(ShadowProvider provider) { provider.SavePandoraArousal(Shadow); }
public void Save(ShadowProvider provider) { provider.SavePandoraSynthesis(Shadow); }
public void Save(ShadowProvider provider) { provider.SaveItem(Shadow); }
public void Save(ShadowProvider provider) { provider.SavePandoraStrength(Shadow); }
public void Save(ShadowProvider provider) { provider.SaveTeammember(Shadow); }