Пример #1
0
 static void OrderService_OnOrderPaySuccessed(long orderId)
 {
     try
     {
         var orderData = _orderService.GetOrder(orderId);
         _iMemberService.UpdateNetAmount(orderData.UserId, orderData.TotalAmount);
         _iMemberService.IncreaseMemberOrderNumber(orderData.UserId);
         _iMemberService.UpdateLastConsumptionTime(orderData.UserId, DateTime.Now);
         OrderApplication.DealDithOrderCategoryByUserId(orderId, orderData.UserId);
     }
     catch (Exception e)
     {
         Log.Error("处理付款成功消息出错", e);
     }
 }