From 568ff5ab11e03dc27674b83b7ae5677ba1e164a7 Mon Sep 17 00:00:00 2001 From: liuyangyi Date: Sat, 22 Jun 2024 10:31:28 +0800 Subject: [PATCH] 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