Skip to content

Commit e15039d

Browse files
committed
Fix subscription view
fix #39,fix #37
1 parent 6937860 commit e15039d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/leetcode-editor-V4.3.zip

1.1 KB
Binary file not shown.

doc/leetcode-editor.zip

6.37 KB
Binary file not shown.

resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@
105105
<li>v4.3<br>
106106
1.修复付费用户订阅题目展示<br>
107107
2.修复leetcode-cn.com登陆问题<br>
108-
3.增加跳转到题目对应的leetcode官网地址的功能<br>
108+
3.增加跳转到题目对应的leetcode官网地址的功能 @zzdcon<br>
109109
</li>
110110
<li>v4.3<br>
111111
1.Fix subscription view<br>
112112
2.fix leetcode-cn.com login<br>
113-
3.add a new feature of browsing certain question on the website of leetcode<br>
113+
3.add a new feature of browsing certain question on the website of leetcode @zzdcon<br>
114114
</li>
115115
116116
<li>v4.2<br>

src/com/shuzijun/leetcode/plugin/manager/QuestionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private static List<Question> parseQuestion(String str) {
193193

194194
if (StringUtils.isNotBlank(str)) {
195195
JSONObject jsonObject = JSONObject.parseObject(str);
196-
Boolean isPremium = new Integer("1").equals(jsonObject.getInteger("frequency_high")); //Premium users display frequency
196+
Boolean isPremium = new Integer("0").equals(jsonObject.getInteger("frequency_high")); //Premium users display frequency
197197
JSONArray jsonArray = jsonObject.getJSONArray("stat_status_pairs");
198198
for (int i = 0; i < jsonArray.size(); i++) {
199199
JSONObject object = jsonArray.getJSONObject(i);
@@ -202,7 +202,7 @@ private static List<Question> parseQuestion(String str) {
202202
question.setQuestionId(object.getJSONObject("stat").getString("question_id"));
203203
question.setFrontendQuestionId(object.getJSONObject("stat").getString("frontend_question_id"));
204204
try {
205-
if(object.getBoolean("paid_only") && !isPremium){
205+
if(object.getBoolean("paid_only") && isPremium){
206206
question.setStatus(object.getBoolean("paid_only") ? "lock" : null);
207207
}else {
208208
question.setStatus(object.get("status") == null ? "" : object.getString("status"));

0 commit comments

Comments
 (0)