赠礼系统Event

赠礼成功事件

GiftSendEvent

触发时机

用户对消息或者帖子进行赠礼并且成功时触发

需要权限

高级权限-超级管理员

事件类型

7001

事件内容

EventBodyGiftSend

字段类型说明
islandSourceIdstring来源群ID
channelIdstring来源频道ID
orderNostring订单号
targetTypeint内容类型,1:消息,2:帖子
targetIdstring内容ID
totalAmountdecimal礼物总价值(铃钱)
giftobject礼物信息
islandRatiodecimal群分成(百分比)
islandIncomedecimal群收入(里程)
dodoSourceIdstring赠礼人DoDoID
dodoIslandNickNamestring赠礼人群昵称
toDodoSourceIdstring被赠礼人DoDoID
toDodoIslandNickNamestring被赠礼人群昵称
toDodoRatiodecimal被赠礼人分成(百分比)
toDodoIncomedecimal被赠礼人收入(里程)

事件示例

{
    "type": 0,
    "data": {
        "eventBody": {
            "islandSourceId": "101566",
            "channelId": "118522",
            "orderNo": "20221110134820100260687",
            "targetType": 1,
            "targetId": "377470609502158848",
            "gift": {
                "id": "1",
                "name": "飞机",
                "count": 1
            },
            "totalAmount": 1.00,
            "islandRatio": 3.00,
            "islandIncome": 0.30,
            "dodoSourceId": "5868",
            "dodoIslandNickName": "测试群昵称",
            "toDodoSourceId": "6252",
            "toDodoIslandNickName": "测试群昵称2",
            "toDodoRatio": 87.00,
            "toDodoIncome": 0.87
        },
        "eventId": "d9c229b3050142b7bc8ad892df34e700",
        "eventType": "7001",
        "timestamp": 1668059298270
    },
    "version": "v2"
}