From d88db71e788b49caa6bd64a8f00de47ed8786a41 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Thu, 19 Jul 2018 14:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=8D=87=E7=BA=A7=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=8F=8A=E6=97=B6=E9=85=8D=E7=BD=AE=E4=B8=8A?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=9C=B0=E5=9D=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs | 5 ++++- B3QingDaoWanFu/TypeIOCs/SaleOutStoreBLTypeIoc.cs | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs b/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs index 2ef5062..44559e0 100644 --- a/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs +++ b/B3QingDaoWanFu/Tasks/SyncSaleOutStoreInfoToMES.cs @@ -75,7 +75,10 @@ namespace BWP.B3QingDaoWanFu.Tasks { // http://172.28.1.194:7799/B2/Rest.aspx if (!InitRpcFacade()) - return; + { + if (!ClientServerFacedRpcFacadeUtil.InitRpcFacade()) + return; + } var main = new JoinAlias(typeof(SaleOutStore)); var relate = new JoinAlias(typeof(SaleOutStoreBarCodeToMESLog)); var detail = new JoinAlias(typeof(SaleOutStore_Detail)); diff --git a/B3QingDaoWanFu/TypeIOCs/SaleOutStoreBLTypeIoc.cs b/B3QingDaoWanFu/TypeIOCs/SaleOutStoreBLTypeIoc.cs index 3daa0cc..90d7727 100644 --- a/B3QingDaoWanFu/TypeIOCs/SaleOutStoreBLTypeIoc.cs +++ b/B3QingDaoWanFu/TypeIOCs/SaleOutStoreBLTypeIoc.cs @@ -139,7 +139,11 @@ namespace BWP.B3QingDaoWanFu.TypeIOCs { var traceBackUrl = GetTraceBackUrl(); if (string.IsNullOrEmpty(traceBackUrl)) - return; + { + traceBackUrl = new B3ButcherManageOnlineConfiguration().TraceBackServerUrl; + if (string.IsNullOrEmpty(traceBackUrl)) + return; + } //http://172.28.1.99:7766/api/TraceBackInfo/ //InsertSaleOutStore //SegmentInsertSaleOutStore