From 79a73f094822f67532044fc3c08ea5f9052cad59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 26 Feb 2025 10:17:00 +0800 Subject: [PATCH] 1 --- business/partner/purchase/mtwm/callback.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/partner/purchase/mtwm/callback.go b/business/partner/purchase/mtwm/callback.go index d8ee80019..76f417999 100644 --- a/business/partner/purchase/mtwm/callback.go +++ b/business/partner/purchase/mtwm/callback.go @@ -70,15 +70,15 @@ func OnImMsg(msg *mtwmapi.ImCallbackMsg) (response *mtwmapi.CallbackResponse) { if err = json.Unmarshal(str, &PushContentReq); err != nil { return mtwmapi.SignatureIsNotOk } - globals.SugarLogger.Debugf("----------msg := %s", utils.Format4Output(msg, false)) - globals.SugarLogger.Debugf("----------PushContentReq := %s", utils.Format4Output(PushContentReq, false)) storeDetail, err2 := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), PushContentReq.AppPoiCode, model.VendorIDMTWM, utils.Int2Str(PushContentReq.AppID)) if err2 == nil || storeDetail == nil { switch beego.BConfig.RunMode { case model.ServerTypeFruits: + globals.SugarLogger.Debugf("----------msg pet := %s", utils.Format4Output(msg, false)) pushIMToGyOrPet(msg, model.ServerTypePet) return mtwmapi.SuccessResponse case model.ServerTypeVegetable: + globals.SugarLogger.Debugf("----------msg jxgy:= %s", utils.Format4Output(msg, false)) pushIMToGyOrPet(msg, model.ServerTypeFruits) return mtwmapi.SuccessResponse } @@ -101,7 +101,7 @@ func pushIMToGyOrPet(msg *mtwmapi.ImCallbackMsg, serverType string) { ) params := make(map[string]interface{}) params["timestamp"] = msg.Timestamp - params["sign"] = msg.Sig + params["sig"] = msg.Sig params["app_id"] = msg.AppID params["biz_type"] = msg.BizType params["push_content"] = msg.PushContent