Commit 048700cc by yangchen

修改用户认证类型获取错误问题

parent 60f6bcc2
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.zhiwei</groupId>
<artifactId>toutiao</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
<dependencies>
<dependency>
......
......@@ -258,8 +258,8 @@ public class TouTiaoAccountParse {
description = data.getString("description");
verifyContent = data.getString("verify_content");
userVerified = Integer.valueOf(data.getString("user_verified"));
if(data.getJSONObject("user_auth_info") !=null && !data.getJSONObject("user_auth_info").isEmpty()) {
userVerified = 1;
verifyContent = data.getJSONObject("user_auth_info").getString("auth_info");
authType = data.getJSONObject("user_auth_info").getInteger("auth_type");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment