Skip to content

事件通知同一个回调地址不同事件类型 #393

@songxc9527

Description

@songxc9527

您的功能请求与问题有关吗? 请描述您遇到的问题

商家名片会员,出现同一个回调地址,有多种事件类型通知。
NotificationParser反序列化成Notification和解密转成业务类封装在了一个方法,导致在外层无法判断Notification的具体类型,不知道该转成哪个类结构。

描述您想要的解决方案

两种方式:

  1. 在header上加消息类型
  2. 可以把转+校验Notification和转具体消息内容方法分开

您还有其他的方案吗?

No response

其他信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions