Skip to content

如何区别帖子的“支持”和“反对” #17

@Febers

Description

@Febers

通过帖子详情接口返回的数据里面,对于一个有两个“支持”的帖子(tid = 1768207),zanList 为

        "zanList": [
            {
                "tid": "1768207",
                "recommenduid": "224435",
                "dateline": "1561730816",
                "username": "seaky",
                "count(distinct recommenduid)": "1"
            },
            {
                "tid": "1768207",
                "recommenduid": "17667",
                "dateline": "1561722476",
                "username": "desert-water",
                "count(distinct recommenduid)": "1"
            }
        ]

然而对于一个有一支持、一反对的帖子(tid = 1768676),返回的结果为

        "zanList": [
            {
                "tid": "1768676",
                "recommenduid": "214009",
                "dateline": "1561785395",
                "username": "Febers",
                "count(distinct recommenduid)": "1"
            },
            {
                "tid": "1768676",
                "recommenduid": "171264",
                "dateline": "1561737977",
                "username": "灿若千阳",
                "count(distinct recommenduid)": "1"
            }
        ]

可以看到返回的数据里,“支持”和“反对”是没有区分的,可以通过下面的数据获得“支持”的数量,但是“反对”信息仍是无法获取的

            {
                "action": "http://bbs.uestc.edu.cn/mobcent/app/web/index.php?r=forum/support&sdkVersion=2.6.1.7&accessToken=*&accessSecret=*&apphash=&tid=1768207&pid=31669106&type=thread",
                "title": "支持",
                "extParams": {
                    "beforeAction": "",
                    "recommendAdd": 2,
                    "isHasRecommendAdd": 0
                },
                "type": "support"
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions