From a9d94db472be5e5948e3e1700043a4c26348eee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Tue, 30 Mar 2021 21:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views.Mobile/User/Index.cshtml | 12 +++++++++++- Host/Views/Shared/_UserLayout.cshtml | 13 +++++++++++-- .../Service/Coupon/CouponService.cs | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) 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