Skip to content

Commit 343e362

Browse files
committed
Fix: API doc changed
restrictedFor -> feeRequired
1 parent ed2e036 commit 343e362

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/cn/settile/fanboxviewer/Network/FanboxParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ object FanboxParser {
254254
val items: MutableList<DetailItem> = ArrayList()
255255
val req = getJSON(url)
256256
val body = req!!.getJSONObject("body")
257-
if (body.getString("restrictedFor") != "null") {
257+
if (body.getString("feeRequired") != "null") {
258258
items.add(
259259
DetailItem(
260260
DetailItem.Type.TEXT,

app/src/main/java/cn/settile/fanboxviewer/Network/RESTfulClient/FanboxUserParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public List<DetailItem> getPostContent(String id) throws Exception{
106106
public List<DetailItem> getPostContent(JSONObject body) throws Exception{
107107
List<DetailItem> items = new ArrayList<>();
108108

109-
if(!body.getString("restrictedFor").equals("null")){
109+
if(!body.getString("feeRequired").equals("null")){
110110
items.add(new DetailItem(DetailItem.Type.TEXT,
111111
String.format(c.getString(R.string.plan_formatting), body.getInt("feeRequired"))));
112112
items.add(new DetailItem(DetailItem.Type.IMAGE, "false"));

0 commit comments

Comments
 (0)