|
@@ -40,7 +40,10 @@ func (l *MultipleSaveMsgLogic) MultipleSaveMsg(req types.MultipleSaveMsgReq) (*t
|
|
|
errCount := 0
|
|
|
lsi := l.svcCtx.MessageCenter
|
|
|
msgInfo := req.MsgInfo
|
|
|
- showBuoyValue, _ := msgInfo["showBuoy"].(json.Number).Int64()
|
|
|
+ var showBuoyValue int64 = 0
|
|
|
+ if value, ok := msgInfo["showBuoy"].(json.Number); ok {
|
|
|
+ showBuoyValue, _ = value.Int64()
|
|
|
+ }
|
|
|
_, err := lsi.MultipleSaveMsg(l.ctx, &messageclient.MultipleSaveMsgReq{
|
|
|
Appid: util.ObjToString(msgInfo["appid"]),
|
|
|
SendUserId: util.ObjToString(msgInfo["sendUserId"]),
|