This commit is contained in:
邹宗楠
2025-02-26 11:08:41 +08:00
parent abe156fc66
commit b650e99758
2 changed files with 4 additions and 30 deletions

View File

@@ -71,15 +71,13 @@ func OnImMsg(msg *mtwmapi.ImCallbackMsg) (response *mtwmapi.CallbackResponse) {
return mtwmapi.SignatureIsNotOk
}
storeDetail, err2 := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), PushContentReq.AppPoiCode, model.VendorIDMTWM, utils.Int2Str(PushContentReq.AppID))
if err2 == nil || storeDetail == nil {
if err2 != nil || storeDetail == nil {
msg.PushContent = string(str)
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
}