This commit is contained in:
苏尹岚
2021-03-26 16:29:27 +08:00
parent 559908276d
commit e45d85e999
3 changed files with 7 additions and 3 deletions

View File

@@ -795,7 +795,7 @@ func NotifyStoreAlertMessage(storeID int, storeName, title, content string) (err
return err
}
func SendStoreMessage(ctx *jxcontext.Context, title, content string, storeIDs []int, actInfo string, messageType int, isAsync, isContinueWhenError bool) (hint string, err error) {
func SendStoreMessage(ctx *jxcontext.Context, title, content string, storeIDs []int, imgs []string, actInfo string, messageType int, isAsync, isContinueWhenError bool) (hint string, err error) {
db := dao.GetDB()
//权限
if permission.IsRoled(ctx) {
@@ -831,6 +831,7 @@ func SendStoreMessage(ctx *jxcontext.Context, title, content string, storeIDs []
Content: content,
Type: int8(messageType),
ActInfo: actInfo,
Imgs: strings.Join(imgs, ","),
}
dao.WrapAddIDCULDEntity(msg, ctx.GetUserName())
if err = dao.CreateEntity(db, msg); err != nil {