...
|
...
|
@@ -8,8 +8,10 @@ import ( |
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/dao"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/serviceGateway"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -138,13 +140,13 @@ func appMessageSend() error { |
|
|
appMessage = append(appMessage, messageList...)
|
|
|
}
|
|
|
|
|
|
// openApi := serviceGateway.NewHttplibMmmOpenApiServiceGateway()
|
|
|
// for _, val := range appMessage {
|
|
|
// _, err := openApi.PushInfo(1, constant.APP_MESSAGE_KEY, []int64{int64(val.TargetUserId)}, val.Title, val.Content)
|
|
|
// if err != nil {
|
|
|
// log.Logger.Error("发送远端openApi关于里程碑异常的消息通知:" + err.Error())
|
|
|
// }
|
|
|
// }
|
|
|
openApi := serviceGateway.NewHttplibMmmOpenApiServiceGateway()
|
|
|
for _, val := range appMessage {
|
|
|
_, err := openApi.PushInfo(1, constant.APP_MESSAGE_KEY, []int64{int64(val.TargetUserId)}, val.Title, val.Content)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("发送远端openApi关于里程碑异常的消息通知:" + err.Error())
|
|
|
}
|
|
|
}
|
|
|
|
|
|
err = saveAllMessagePersonal(appMessage)
|
|
|
if err != nil {
|
...
|
...
|
|