Skip to content

Commit 998f252

Browse files
authored
Merge pull request #118 from ccagml/main
2.10.7
2 parents 94a5897 + 54e1ae2 commit 998f252

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
## version 2.10.7
2+
3+
- 中文题解获取错误
4+
15
## version 2.10.6
26

37
- 更新工作流
48

59
## version 2.10.5
610

7-
- bricks.json格式化
11+
- bricks.json 格式化
812

913
## version 2.10.4
1014

11-
- 更新action
15+
- 更新 action
1216

1317
## version 2.10.3
1418

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-leetcode-problem-rating",
33
"displayName": "LeetCode",
44
"description": "LeetCode 官方插件增强, 代码开源, 增加 LeetCode 题目难度分, 给个star吧, 球球了",
5-
"version": "2.10.6",
5+
"version": "2.10.7",
66
"author": "ccagml",
77
"publisher": "ccagml",
88
"license": "MIT",

src/rpc/actionChain/chainNode/leetcode.cn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function getSolutionBySlug(question_slug: string, articles_slug: string, lang: s
223223
opts.json = true;
224224
opts.body = {
225225
operationName: "solutionDetailArticle",
226-
variables: { slug: "pan-duan-guo-ji-xiang-qi-qi-pan-zhong-yi-8dv4", orderBy: "DEFAULT" },
226+
variables: { slug: articles_slug, orderBy: "DEFAULT" },
227227
query: [
228228
"query solutionDetailArticle($slug: String!, $orderBy: SolutionArticleOrderBy!) {",
229229
" solutionArticle(slug: $slug, orderBy: $orderBy) {",
@@ -265,7 +265,7 @@ function getSolutionBySlug(question_slug: string, articles_slug: string, lang: s
265265
let content = solution.content.replace(/\\n/g, "\n").replace(/\\t/g, "\t");
266266

267267
let solution_result: any = {};
268-
solution_result.problem_name = "暂代题目名称";
268+
solution_result.problem_name = solution.title;
269269
solution_result.title = solution.title;
270270
solution_result.url = link;
271271
solution_result.lang = lang;

0 commit comments

Comments
 (0)