Пример #1
0
        /// <summary>
        ///     记错误日志
        /// </summary>
        /// <param name="lastOnSellAssetDtos"></param>
        /// <param name="assetuserRatios"></param>
        /// <param name="yemUserProductDto"></param>
        /// <param name="currentDealPurchaseAmount"></param>
        /// <param name="userAssetRatios"></param>
        /// <returns></returns>
        private static async Task AddLogAsync(List <OnSellAssetDto> lastOnSellAssetDtos, List <UserAssetRatio> userAssetRatios, List <UserAssetRatio> assetuserRatios, YemUserProductDto yemUserProductDto, long currentDealPurchaseAmount)
        {
            ResetYemUserPurchase resetYemUserPurchase = new ResetYemUserPurchase();

            resetYemUserPurchase.OrderId                   = yemUserProductDto.OrderId;
            resetYemUserPurchase.YemUserProductDto         = yemUserProductDto.MapToYemUserProductDto();
            resetYemUserPurchase.CurrentDealPurchaseAmount = currentDealPurchaseAmount;
            Logger.Logw("ErrorOldLastOnSellAsset", lastOnSellAssetDtos.ToJson());
            Logger.Logw("ErrorOldYemUserPurchase", resetYemUserPurchase.ToJson());
            Logger.Logw("ErrorOldUserAssetRatio", userAssetRatios.ToJson());
            Logger.Logw("ErrorOldAssetUserRatio", assetuserRatios.ToJson());

            //记Redis
            await RedisHelper.SetRedisOnSellAssetByOldAsync(lastOnSellAssetDtos);

            await RedisHelper.SetRedisUserAssetRatioByOldAsync(userAssetRatios);

            await RedisHelper.SetRedisAssetUserRatioByOldAsync(assetuserRatios);

            await RedisHelper.SetRedisYemUserPurchaseByOldAsync(resetYemUserPurchase);
        }
Пример #2
0
 /// <summary>
 ///     记错误的订单信息
 /// </summary>
 /// <returns></returns>
 public static async Task SetRedisYemUserPurchaseByOldAsync(ResetYemUserPurchase yemUserProductDto)
 {
     await redisDatabase.HashSetToCacheAsync("ErrorYemUserPurchase", "List", yemUserProductDto.OrderId, yemUserProductDto, TimeSpan.MaxValue);
 }