فهرست منبع

Merge branch 'dev/v1.2.7_dx' of moapp/MessageCenter into feature/v1.2.7

duxin 1 سال پیش
والد
کامیت
2df9694c32
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      rpc/internal/logic/appletterpushlogic.go

+ 3 - 2
rpc/internal/logic/appletterpushlogic.go

@@ -35,6 +35,7 @@ func NewAppLetterPushLogic(ctx context.Context, svcCtx *svc.ServiceContext) *App
 // 发送剑鱼微信模版消息
 // 发送剑鱼微信模版消息
 func (l *AppLetterPushLogic) AppLetterPush(in *message.WxTmplMsgRequest) (*message.SendMsgResponse, error) {
 func (l *AppLetterPushLogic) AppLetterPush(in *message.WxTmplMsgRequest) (*message.SendMsgResponse, error) {
 	var userArr []string
 	var userArr []string
+	log.Println("app私信push推送内容===", in)
 	userArr = strings.Split(in.PositionIds, ",")
 	userArr = strings.Split(in.PositionIds, ",")
 	pushConfig, err := common.GetWxTmplConfig(in.MessageClass)
 	pushConfig, err := common.GetWxTmplConfig(in.MessageClass)
 	if err != nil {
 	if err != nil {
@@ -62,7 +63,6 @@ func (l *AppLetterPushLogic) AppLetterPush(in *message.WxTmplMsgRequest) (*messa
 				userData = *rData
 				userData = *rData
 			}
 			}
 		}
 		}
-
 		AppPushMsg(userData, pushConfig.Switch, in.Url, in.Title, in.Detail)
 		AppPushMsg(userData, pushConfig.Switch, in.Url, in.Title, in.Detail)
 	}
 	}
 	return &message.SendMsgResponse{
 	return &message.SendMsgResponse{
@@ -127,6 +127,7 @@ func AppGrpcPush(pushData map[string]interface{}, otherPushId, jgPushId, phoneTy
 		"menuName":    menuName,                  //在哪个webview打开链接,search:搜索 subscribe:订阅 box:百宝箱 me:我的 other:新的webview  消息中心 message
 		"menuName":    menuName,                  //在哪个webview打开链接,search:搜索 subscribe:订阅 box:百宝箱 me:我的 other:新的webview  消息中心 message
 		"redDot":      "",                        //在哪个底部菜单显示小红点,空值则不显示小红点,search:搜索 subscribe:订阅 box:百宝箱 me:我的
 		"redDot":      "",                        //在哪个底部菜单显示小红点,空值则不显示小红点,search:搜索 subscribe:订阅 box:百宝箱 me:我的
 	}
 	}
+	log.Println("push推送内容====", push)
 	b, _ := json.Marshal(push)
 	b, _ := json.Marshal(push)
 	err = client.Call("Rpc.Push", b, &repl)
 	err = client.Call("Rpc.Push", b, &repl)
 	if err != nil {
 	if err != nil {
@@ -136,7 +137,7 @@ func AppGrpcPush(pushData map[string]interface{}, otherPushId, jgPushId, phoneTy
 	if repl == "y" {
 	if repl == "y" {
 		log.Println("推送成功!", pushData["receiveUserId"])
 		log.Println("推送成功!", pushData["receiveUserId"])
 	} else {
 	} else {
-		log.Println("推送失败!", pushData["receiveUserId"])
+		log.Println("推送失败!", repl, pushData["receiveUserId"])
 	}
 	}
 
 
 }
 }