Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

取消喜欢音乐问题 #360

Closed
yoyoping opened this issue Nov 4, 2018 · 11 comments

Comments

Projects
None yet
4 participants
@yoyoping
Copy link

commented Nov 4, 2018

环境

系统:

nodejs 版本:
8.11.1

出现问题

喜欢音乐接口不能取消喜欢

重现步骤

axios调用 /like?id=1293886117&like=false 返回成功,但是数据还是没变化,还是喜欢的音乐

期待效果

/like?id=1293886117&like=false 能够取消喜欢音乐

重现步骤尽量详细,不能含糊不清

如果不是提建议,提 issues 如果不照着模版来将不会优先处理或直接关闭

@Binaryify

This comment has been minimized.

Copy link
Owner

commented Nov 4, 2018

加时间戳试试

@yoyoping

This comment has been minimized.

Copy link
Author

commented Nov 5, 2018

什么意思 ? 没明白呢 ,哪里加时间戳?

@Binaryify

This comment has been minimized.

Copy link
Owner

commented Nov 5, 2018

看文档

@Binaryify Binaryify closed this Nov 5, 2018

@yoyoping

This comment has been minimized.

Copy link
Author

commented Nov 5, 2018

还是没有用 加上了时间戳也没用!/like?id=1293886117&like=false&timestamp=1541419456389, 添加喜欢就可以,取消喜欢就不行,但是取消喜欢接口返回是成功了的

@nondanee

This comment has been minimized.

Copy link
Contributor

commented Nov 5, 2018

@yoyoping
抱歉啊是我的问题,这是个bug,你试试取消喜欢这样行不行 /like?id=1293886117

代码是这样的

query.like = (query.like ? true : false)

因为 query 解析有值就有 String ,所以你写了 &like=... 肯定是 true, 就是喜欢

@Binaryify Binaryify reopened this Nov 5, 2018

@Binaryify

This comment has been minimized.

Copy link
Owner

commented Nov 5, 2018

@nondanee 这个明天修复吧,还以为这个接口已经稳定下来了😂

@yoyoping

This comment has been minimized.

Copy link
Author

commented Nov 6, 2018

我试了一下 /like?id=1293886117 就不加&like 还是不行

@yoyoping

This comment has been minimized.

Copy link
Author

commented Nov 6, 2018

@nondanee 好像是不加&like是可以取消的,只不过要等两分钟左右数据才会更新

@nondanee

This comment has been minimized.

Copy link
Contributor

commented Nov 6, 2018

@yoyoping 我昨天测过是实时的啊 😂,要么是因为接口有缓存

@Binaryify

This comment has been minimized.

Copy link
Owner

commented Nov 9, 2018

新版本已经修复这个问题了,数据更新问题是因为2分钟的缓存,得按照文档说明加时间戳避免相同url返回缓存

@Binaryify Binaryify closed this Nov 9, 2018

@kunzi588

This comment has been minimized.

Copy link

commented Nov 16, 2018

您好,我想问一下你的那个喜欢 我测试已经成功了,但是我就算刷新了页面,喜欢列表里的数据也没有那一条,新手,求多多帮助,真心感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.