diff --git a/business/partner/purchase/mtwm/order_afs.go b/business/partner/purchase/mtwm/order_afs.go index d949908dc..8e1f8be36 100644 --- a/business/partner/purchase/mtwm/order_afs.go +++ b/business/partner/purchase/mtwm/order_afs.go @@ -250,7 +250,6 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *mtwmapi.CallbackMsg) (retVal *mtwma order.NewEarningPrice = order.EarningPrice } } - globals.SugarLogger.Debugf("-----order.ShopPrice3:=%s,%d,%d", order.VendorOrderID, order.ShopPrice, order.NewEarningPrice) dao.UpdateEntity(db, order, "TotalShopMoney", "ShopPrice", "EarningPrice", "NewEarningPrice") } else { globals.SugarLogger.Debugf("美团平台售后获取退款金额信息错误: = %v", err) diff --git a/controllers/mtwm_callback.go b/controllers/mtwm_callback.go index 96bf00c74..7f5757ae8 100644 --- a/controllers/mtwm_callback.go +++ b/controllers/mtwm_callback.go @@ -4,7 +4,6 @@ import ( "encoding/json" "git.rosy.net.cn/baseapi/platformapi/dingdingapi" "git.rosy.net.cn/baseapi/platformapi/mtwmapi" - "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/jxutils/ddmsg" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" @@ -25,7 +24,6 @@ type MtwmController struct { } var MTWMVendorStoreIDMap = new(sync.Map) -var MTWMVendorStoreIDDontHaveMap = make(map[string]string, 1000) func (c *MtwmController) onCallbackMsg(msgType string) { msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request) @@ -43,7 +41,6 @@ func (c *MtwmController) onCallbackMsg(msgType string) { if _, have := MTWMVendorStoreIDMap.Load(vendorStoreId); vendorStoreId != "" && !have { storeDetail, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), vendorStoreId, model.VendorIDMTWM, "") if storeDetail == nil { - MTWMVendorStoreIDDontHaveMap[vendorStoreId] = "2" switch web.BConfig.RunMode { case model.ServerTypeVegetable, "dev": callbackResponse = pushMTWMOrder2GY(msg.FormData, msgType, model.ServerTypeFruits) @@ -53,10 +50,6 @@ func (c *MtwmController) onCallbackMsg(msgType string) { callbackResponse = mtwmapi.Err2CallbackResponse(nil, "") // mtwmapi.Err2CallbackResponse(fmt.Errorf("美团菜市推果园,果园退超市未找到门店cmd:%s,storeId:%s", msgType, vendorStoreId), "") } - if time.Now().Hour()%2 == 0 { - globals.SugarLogger.Debugf("MTWMVendorStoreIDDontHaveMap := %s", utils.Format4Output(MTWMVendorStoreIDDontHaveMap, false)) - } - //c.Data["json"] = callbackResponse c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "") c.ServeJSON() return