diff --git a/app/src/main/java/cn/settile/fanboxviewer/Network/RESTfulClient/FanboxUserParser.java b/app/src/main/java/cn/settile/fanboxviewer/Network/RESTfulClient/FanboxUserParser.java index 1594e45..2b59177 100644 --- a/app/src/main/java/cn/settile/fanboxviewer/Network/RESTfulClient/FanboxUserParser.java +++ b/app/src/main/java/cn/settile/fanboxviewer/Network/RESTfulClient/FanboxUserParser.java @@ -106,7 +106,7 @@ public List getPostContent(String id) throws Exception{ public List getPostContent(JSONObject body) throws Exception{ List items = new ArrayList<>(); - if(!body.getString("feeRequired").equals("null")){ + if(body.getBoolean("isRestricted")){ items.add(new DetailItem(DetailItem.Type.TEXT, String.format(c.getString(R.string.plan_formatting), body.getInt("feeRequired")))); items.add(new DetailItem(DetailItem.Type.IMAGE, "false"));