问津社区Android客户端
mzw1004 / wenjin-android Goto Github PK
View Code? Open in Web Editor NEW问津社区Android客户端
问津社区Android客户端
登录页面输入完信息后点击登录按钮应该自动隐藏键盘,否则加载进度条会被遮挡,用户可能二次点击登录按钮。
如果发生了二次点击登录按钮,相应api将会被请求两次!
更新时间出现负值,推测可能是服务器时间和客户端时间不一致导致。
在使用了list类型view中,比例home页面中,同一个用户的头像每一条数据都进行了图片的加载,资源消耗大,容易卡。考虑将同一个人头像缓存起来,避免重复加载。
答案感谢的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 威望
望周知。
输入用户名后按回车应该自动设置焦点到密码输入框
一定时间后cookie失效。大约6小时不到。就会提示尚未登陆。建议后台刷新cookie
当用户关注对象很少,信息不够一页的时候,home页面加载进度条会一直显示
通过看新的接口应该可以看到 多了一个 answer_content的(70字简介)一项。
希望在下一个版本中能够在发现里增加一个答案的预览。(这个answer_content对应的就是answer_user)
以后的标准,数字都是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。
.idea/ 路径包含了许多Intelij project 文件,然而这是不需要的。
包括 mac系统中的 .DS_Store也是需要ignore 的
URL:/?/api/home/check_actions_new/
HTTP请求方式 GET
[in]time, 当前unix时间戳
请控制请求频率
获得未读的动态数量。可以在动态一栏中增加【红色小圈圈】提示用户刷新个人动态。
友盟统计运行问题如何解决
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.