Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

一点赞,就会报错 #47

Open
qxl1231 opened this issue Jun 2, 2016 · 6 comments
Open

一点赞,就会报错 #47

qxl1231 opened this issue Jun 2, 2016 · 6 comments

Comments

@qxl1231
Copy link

qxl1231 commented Jun 2, 2016

报网络原因的错误
wechat_1464859735

@TakWolf
Copy link
Contributor

TakWolf commented Jun 2, 2016

不能给自己点赞,状态码会返回403

@TakWolf
Copy link
Contributor

TakWolf commented Jun 2, 2016

@soliury 现在所有接口的error_msg返回的都是中文,可以直接拿来做提示

@qxl1231
Copy link
Author

qxl1231 commented Jun 2, 2016

确实,验证下来给别人点赞ok的,就是给自己点赞不行,那不如直接不要在自己说的话下面加点赞按钮咯,还有返回的错误码提示也不对,这不是网络错误啊

@TakWolf
Copy link
Contributor

TakWolf commented Jun 2, 2016

@qxl1231 点赞按钮旁边有该回复的点赞数量,不能去掉

@qxl1231
Copy link
Author

qxl1231 commented Jun 2, 2016

那就做个条件判断咯,如果这里的user=本人,则把这个按钮置灰,不可点击,至少不能让用户报错撒

@osdio
Copy link
Owner

osdio commented Jun 2, 2016

我记得第一版是有判断的,后来重构的时候貌似就漏掉了,这个放到下一版更新吧

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants