diff --git a/Host/Views.Mobile/User/Index.cshtml b/Host/Views.Mobile/User/Index.cshtml index 91bb099..dfe4944 100644 --- a/Host/Views.Mobile/User/Index.cshtml +++ b/Host/Views.Mobile/User/Index.cshtml @@ -14,7 +14,17 @@
  • 我的订单
  • 退货订单
  • IP账号管理
  • -
  • 我的优惠券
  • +
  • 我的优惠券 
  • 提现管理
  • + diff --git a/Host/Views/Shared/_UserLayout.cshtml b/Host/Views/Shared/_UserLayout.cshtml index 9d0cedc..ea632d1 100644 --- a/Host/Views/Shared/_UserLayout.cshtml +++ b/Host/Views/Shared/_UserLayout.cshtml @@ -199,7 +199,7 @@ IP账号管理
    - 我的优惠券 + 我的优惠券 
    提现管理 @@ -211,7 +211,16 @@
    - + @RenderSection("Scripts", required: false) diff --git a/Services/Hncore.Pass.Sells/Service/Coupon/CouponService.cs b/Services/Hncore.Pass.Sells/Service/Coupon/CouponService.cs index d0a275e..6f0cb16 100644 --- a/Services/Hncore.Pass.Sells/Service/Coupon/CouponService.cs +++ b/Services/Hncore.Pass.Sells/Service/Coupon/CouponService.cs @@ -78,7 +78,7 @@ namespace Hncore.Pass.Sells.Service public async Task> GetUserCoupon(int userId) { - var oroginCoupons = m_CouponUserOrginService.Query(m => m.ToUser == userId && DateTime.Now <= m.EndTime); + var oroginCoupons = m_CouponUserOrginService.Query(m => m.ToUser == userId && m.Status == CouponStatus.Origin && DateTime.Now <= m.EndTime); var hasCoupon = from orgin in oroginCoupons join coupon in this.Query(true) on orgin.CouponId equals coupon.Id