Giter VIP home page Giter VIP logo

wenjin-android's Introduction

WenJin-Android

问津社区Android客户端

wenjin-android's People

Contributors

greenlim avatar jeraldsun avatar jinsen47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wenjin-android's Issues

更新时间出现负值

更新时间出现负值,推测可能是服务器时间和客户端时间不一致导致。

增加感谢操作api

答案感谢的api
/?/api/question/answer_thank/

方法POST
[in] string type(此时type为固定值thanks)
[in] int answer_id 答案id

返回的值

rsm 数组 包含action 。操作成功返回action值为add

可能的错误(写在err内)积分不足(感谢需要消耗积分的,所以可能会有积分不足的情况)、已经感谢过,答案不存在、给自己感谢。

个人信息接口

/?/api/account/get_userinfo/接口
增加
[int]sex 性别[1男 2女 3保密 0为未知(用户尚未填写,天外天也未获取成功,历史原因)]
[int]integral 积分
[int]reputation 威望

望周知。

发现(explore)增加答案详情

通过看新的接口应该可以看到 多了一个 answer_content的(70字简介)一项。
希望在下一个版本中能够在发现里增加一个答案的预览。(这个answer_content对应的就是answer_user)

关于api返回字段的类型

以后的标准,数字都是int,其他都是string
在所有接口后面 get platform=ios 可以看到效果,尽量都统一一下。

关于个人动态的显示问题

我更新了一下/?/api/home/的显示结构
增加了topic_info
topic_info不全有。因为你们在web端也可以看到。有时候会收到这样的动态(xxx话题增加了一个新的回复赞同。XXX话题增加了一个新的回答。XXX话题增加了新的问题)

这样的动态出现的情况是因为:该用户关注了该话题,却没有关注该问题和该用户。如果一味的屏蔽这种消息,会造成更新太慢或用户收不到自己关注话题的动态。

解决办法:如果topic_info 不为空(注意是不为空),那么优先显示topic_info的信息,而不显示user_info内的信息。如果topic_info信息为空则显示user_info。

.gitignore未包含.idea/路径

.idea/ 路径包含了许多Intelij project 文件,然而这是不需要的。
包括 mac系统中的 .DS_Store也是需要ignore 的

API增加 检查当前是否有新动态

URL:/?/api/home/check_actions_new/
HTTP请求方式 GET
[in]time, 当前unix时间戳
请控制请求频率

获得未读的动态数量。可以在动态一栏中增加【红色小圈圈】提示用户刷新个人动态。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.