From 556aff0d13c93dfcfffa7a5099cecbcecd567a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sun, 18 Feb 2024 15:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=91=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/auto_delivery/auto_delivery.go | 1 - business/jxcallback/orderman/order.go | 1 - business/jxstore/cms/storeman.go | 13 +------------ business/partner/delivery/mtps/waybill.go | 1 - business/partner/purchase/ebai/callback.go | 2 -- business/partner/purchase/mtwm/store.go | 2 -- 6 files changed, 1 insertion(+), 19 deletions(-) diff --git a/business/jxcallback/auto_delivery/auto_delivery.go b/business/jxcallback/auto_delivery/auto_delivery.go index a41cdd877..6b94a2d3a 100644 --- a/business/jxcallback/auto_delivery/auto_delivery.go +++ b/business/jxcallback/auto_delivery/auto_delivery.go @@ -126,7 +126,6 @@ func AutoSettingFakeDelivery() { } else { place, err := dao.GetParentCodeByCode(db, storeDetail.CityCode) if err != nil { - globals.SugarLogger.Debugf("根据门店的城市code获取省份code错误: %s", err) return } if strings.Contains(place.Name, "省") { diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 51d124f3a..71d7daf52 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -2687,7 +2687,6 @@ func UpdateTiktokShopTotalMoney(storeId int64, startTime, endTime time.Time) err } for _, v := range goodsOrders { - globals.SugarLogger.Debugf("=============测试打印: %s", v.VendorOrderID) orderDetail, err := tiktok_store.GetOrderDetail(v.VendorOrgCode, v.VendorOrderID) if err != nil { errList = append(errList, fmt.Sprintf("详情错误orderID[%s],%v", v.VendorOrderID, err)) diff --git a/business/jxstore/cms/storeman.go b/business/jxstore/cms/storeman.go index e8e010841..932aa5810 100644 --- a/business/jxstore/cms/storeman.go +++ b/business/jxstore/cms/storeman.go @@ -7,7 +7,6 @@ import ( "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" "git.rosy.net.cn/jx-callback/business/partner" - "git.rosy.net.cn/jx-callback/globals" ) type StoreManager struct { @@ -25,8 +24,6 @@ func init() { func (s *StoreManager) OnStoreStatusChanged(vendorStoreID string, vendorID int, storeStatus int) (err error) { db := dao.GetDB() storeDetail, err := dao.GetStoreDetailByVendorStoreID(db, vendorStoreID, vendorID, "") - globals.SugarLogger.Debugf("==========storeDetail := %s", utils.Format4Output(storeDetail, false)) - globals.SugarLogger.Debugf("==========storeStatus := %s", utils.Format4Output(storeStatus, false)) if err == nil { if storeDetail.IsSync == model.NO || storeDetail.Status == model.StoreStatusDisabled || storeDetail.Status == model.StoreStatusHaveRest { return err @@ -37,10 +34,6 @@ func (s *StoreManager) OnStoreStatusChanged(vendorStoreID string, vendorID int, storeKV = map[string]interface{}{ "Status": model.StoreStatusOpened, } - //content := "您的门店 [" + storeDetail.Name + "],ID:[" + utils.Int2Str(storeDetail.ID) + "],在[" + model.VendorChineseNames[vendorID] + "] 平台上营业状态和京西不一致!平台状态:【营业】,京西状态:【非营业】" - //if user, err := dao.GetUserByID(db, "mobile", storeDetail.MarketManPhone); err == nil { - // ddmsg.SendUserMessage(dingdingapi.MsgTyeText, user.UserID, "平台门店状态变化", content) - //} } if storeDetail.VendorStatus != model.StoreStatusOpened { storeMapKV = map[string]interface{}{ @@ -54,14 +47,10 @@ func (s *StoreManager) OnStoreStatusChanged(vendorStoreID string, vendorID int, "Status": storeStatus, } } - //content := "您的门店 [" + storeDetail.Name + "],ID:[" + utils.Int2Str(storeDetail.ID) + "],在[" + model.VendorChineseNames[vendorID] + "] 平台上营业状态和京西不一致!平台状态:【非营业】,京西状态:【营业】" - //if user, err := dao.GetUserByID(db, "mobile", storeDetail.MarketManPhone); err == nil { - // ddmsg.SendUserMessage(dingdingapi.MsgTyeText, user.UserID, "平台门店状态变化", content) - //} } else if storeDetail.Status <= storeStatus { if storeDetail.VendorStatus != model.StoreStatusOpened { storeMapKV = map[string]interface{}{ - "Status": model.StoreStatusOpened, + "Status": storeStatus, } } } diff --git a/business/partner/delivery/mtps/waybill.go b/business/partner/delivery/mtps/waybill.go index e7795bbcb..a5f1e3c8b 100644 --- a/business/partner/delivery/mtps/waybill.go +++ b/business/partner/delivery/mtps/waybill.go @@ -331,7 +331,6 @@ func (c *DeliveryHandler) CreateWaybill(order *model.GoodsOrder, maxDeliveryFee return nil, fmt.Errorf("此平台配送已被系统关闭,暂不发配送 [%v]", vendorOrgCode[0].Comment) } - globals.SugarLogger.Debugf("===================maxDeliveryFee := %d", maxDeliveryFee) if maxDeliveryFee == model.NO { fee, err := c.GetWaybillFee(order) if err != nil { diff --git a/business/partner/purchase/ebai/callback.go b/business/partner/purchase/ebai/callback.go index 15b325355..075131ff1 100644 --- a/business/partner/purchase/ebai/callback.go +++ b/business/partner/purchase/ebai/callback.go @@ -8,7 +8,6 @@ import ( "git.rosy.net.cn/jx-callback/business/jxutils/netprinter" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" - "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" ) @@ -27,7 +26,6 @@ func OnCallbackMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse if /*msg.Cmd == ebaiapi.CmdOrderPartRefund || msg.Cmd == ebaiapi.CmdOrderUserCancel || */ msg.Cmd == ebaiapi.CmdOrderDeliveryStatus { response = CurPurchaseHandler.OnFinancialMsg(msg) } else if msg.Cmd == ebaiapi.CmdShopMsgPush { - globals.SugarLogger.Debugf("=============baidushopmsg := %s", utils.Format4Output(msg, false)) response = CurPurchaseHandler.onShopMsgPush(msg) } else if msg.Cmd == ebaiapi.CmdShopUnbindMsg { // 门店授权发生变化 17,失去授权 diff --git a/business/partner/purchase/mtwm/store.go b/business/partner/purchase/mtwm/store.go index 7ac2ad352..5ad0a0eb8 100644 --- a/business/partner/purchase/mtwm/store.go +++ b/business/partner/purchase/mtwm/store.go @@ -230,7 +230,6 @@ func (p *PurchaseHandler) DeleteStore(db *dao.DaoDB, storeID int, userName strin } func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName string) (err error) { - globals.SugarLogger.Debugf("===========data : %s",utils.Format4Output(storeID,false)) if db == nil { db = dao.GetDB() } @@ -281,7 +280,6 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin } if globals.EnableMtwmStoreWrite { - globals.SugarLogger.Debugf("===========data : %s",utils.Format4Output(params,false)) errList.AddErr(mtapi.PoiSave(storeDetail.VendorStoreID, params)) } if storeDetail.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreStatus) != 0 {