diff --git a/business/partner/purchase/mtwm/callback.go b/business/partner/purchase/mtwm/callback.go index 89ff6e114..d8ee80019 100644 --- a/business/partner/purchase/mtwm/callback.go +++ b/business/partner/purchase/mtwm/callback.go @@ -73,7 +73,7 @@ func OnImMsg(msg *mtwmapi.ImCallbackMsg) (response *mtwmapi.CallbackResponse) { 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 { + if err2 == nil || storeDetail == nil { switch beego.BConfig.RunMode { case model.ServerTypeFruits: pushIMToGyOrPet(msg, model.ServerTypePet)