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