From e91dbdedfed614b7f89b20c6dffe6b0a1d7082d4 Mon Sep 17 00:00:00 2001 From: wanghaomei <86whm@163.com> Date: Tue, 23 Apr 2024 10:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=80=E6=9D=A5=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EventSubscriber/CompanyUserSyncSubscriber.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Myshipping.Core/EventSubscriber/CompanyUserSyncSubscriber.cs b/Myshipping.Core/EventSubscriber/CompanyUserSyncSubscriber.cs index 7b3cb851..9c091bf0 100644 --- a/Myshipping.Core/EventSubscriber/CompanyUserSyncSubscriber.cs +++ b/Myshipping.Core/EventSubscriber/CompanyUserSyncSubscriber.cs @@ -338,6 +338,14 @@ namespace Myshipping.Core user.Password = DESCEncryption.Encrypt("123456", keyDES); await repoUser.UpdateAsync(user); + + + //客户端用户信息同步给运营端往来单位 + if (App.Configuration["RunType"] is CommonConst.RUN_TYPE_CUST) + { + var evtPub = App.GetService(); + await evtPub.PublishAsync(new ChannelEventSource($"DjySync:TenantUserToCustomer", tenant.Id)); + } } } }