From 568ff5ab11e03dc27674b83b7ae5677ba1e164a7 Mon Sep 17 00:00:00 2001 From: liuyangyi Date: Sat, 22 Jun 2024 10:31:28 +0800 Subject: [PATCH 1/2] www --- New_College.Services/V_VipCardInfoServices.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/New_College.Services/V_VipCardInfoServices.cs b/New_College.Services/V_VipCardInfoServices.cs index 6a8832c..bf71f50 100644 --- a/New_College.Services/V_VipCardInfoServices.cs +++ b/New_College.Services/V_VipCardInfoServices.cs @@ -22,17 +22,19 @@ namespace New_College.Services private readonly IV_VipCardTypeRepository v_VipCardTypeRepository; private readonly IV_OrderInfoRepository v_OrderInfoRepository; private readonly IV_CustomerInfoRepository v_CustomerInfoRepository; - + private readonly ID_UserSettingBaseServices d_UserSettingBase; public V_VipCardInfoServices(IBaseRepository dal , IV_OrderInfoRepository IV_OrderInfoRepository , IV_VipCardTypeRepository IV_VipCardTypeRepository - , IV_CustomerInfoRepository IV_CustomerInfoRepository) + , IV_CustomerInfoRepository IV_CustomerInfoRepository, +ID_UserSettingBaseServices d_UserSettingBase) { this._dal = dal; v_OrderInfoRepository = IV_OrderInfoRepository; v_VipCardTypeRepository = IV_VipCardTypeRepository; v_CustomerInfoRepository = IV_CustomerInfoRepository; base.BaseDal = dal; + this.d_UserSettingBase = d_UserSettingBase; } /// @@ -75,6 +77,11 @@ namespace New_College.Services var updateresult = await v_CustomerInfoRepository.Update(info); if (updateresult) { + var isverfiy = await d_UserSettingBase.Query(c => c.CustomerId == query.CustomerId); + if (!isverfiy.Any()) + { + await d_UserSettingBase.SyncBaseInfo(new UserSettingBaseRequest() { CustomerId = query.CustomerId }); + } return new MessageModel() { success = true, msg = "绑定成功", response = true }; } else From dd7f2612ade949f58d85f13873c911c62e63f5a2 Mon Sep 17 00:00:00 2001 From: liuyangyi Date: Sat, 22 Jun 2024 10:46:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:bug=20fixd=20vip=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=AC=A1=E6=95=B0=E6=9C=AA=E6=94=B9=E5=8F=98?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Api/Controllers/Back/VipCardController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/New_College.Api/Controllers/Back/VipCardController.cs b/New_College.Api/Controllers/Back/VipCardController.cs index 4da5082..8ce8174 100644 --- a/New_College.Api/Controllers/Back/VipCardController.cs +++ b/New_College.Api/Controllers/Back/VipCardController.cs @@ -172,9 +172,9 @@ namespace New_College.Api.Controllers.Back }).FirstOrDefault(); response.minProRole = list.Where(e => e.PType == 1).Select(c => new MinProRole() { - ScoreCount = c.ScoreCount, - SearchCount = c.SearchCount, - ShowCount = c.ShowCount + ScoreCount = response.IsVip ? 999 : c.ScoreCount, + SearchCount = response.IsVip ? 999 : c.SearchCount, + ShowCount = response.IsVip ? 999 : c.ShowCount }).FirstOrDefault(); } else