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

user/topiclist返回中有脏数据 #13

Closed
just4fun opened this issue Apr 14, 2017 · 2 comments
Closed

user/topiclist返回中有脏数据 #13

just4fun opened this issue Apr 14, 2017 · 2 comments

Comments

@just4fun
Copy link

嗨,

我想读取其他用户最近发表和最近回复的帖子,读到用户&uid=118774的时候,如果是读取他的最近发表(&type=topic),会返回500或者502;如果读取他的最近回复(&type=reply),返回的数据中有一条如下,

我用河畔iOS通用版看了下,点其他用户头像只会读取他的最近发表,但对于118774这个用户还是什么也读不出来。

网页版则他的最近发表和最近回复都能读出来,而且最近回复中把上面图中的那条脏数据过滤掉了。

所以我有两个问题:

  • 对于用户118774的最近发表,能否看到为何报错?
  • 对于这种脏数据,河畔网页版是如何过滤的?我现在是写了一堆判断
let validList = list.filter(item =>
  item.board_id !== 0 &&
  item.board_name !== "" &&
  item.last_reply_date !== "000" &&
  item.user_id !== 0 &&
  item.user_nick_name !== ""
)

是否只判断其中某个条件就可以了?主要担心有些数据可能不满足上面代码某一条判断,而被误过滤了。

谢谢。

@just4fun
Copy link
Author

@just4fun
Copy link
Author

Resolved.

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

No branches or pull requests

1 participant