File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
src/com/shuzijun/leetcode/plugin/manager Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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" ));
You can’t perform that action at this time.
0 commit comments