by Robin at 20241127

This commit is contained in:
Robin 2024-11-27 16:30:29 +08:00
parent f85edfa766
commit ab1c8f3716
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ func OpCancelNotification(ctx *gin.Context) {
}
func OpReloadUnreadCount(ctx *gin.Context) {
req := ctx.MustGet("client_req").(base.BaseRequest)
req := ctx.MustGet("client_req").(*base.BaseRequest)
ec := service.DefaultService.OpReloadNotificationUrc(ctx, req)
if ec != errcode.ErrCodeNotificationSrvOk {
logger.Error("OpReloadNotificationUrc fail, req: %v, ec: %v", util.ToJson(req), ec)

View File

@ -5301,7 +5301,7 @@ func (s *Service) OpCancelNotification(ctx *gin.Context, req *notificationproto.
}
// 重新加载未读总数
func (s *Service) OpReloadNotificationUrc(ctx *gin.Context, req base.BaseRequest) (ec errcode.ErrCode) {
func (s *Service) OpReloadNotificationUrc(ctx *gin.Context, req *base.BaseRequest) (ec errcode.ErrCode) {
ec = errcode.ErrCodeNotificationSrvOk
go func() {