Skip to content

2.10.7 #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
## version 2.10.7

- 中文题解获取错误

## version 2.10.6

- 更新工作流

## version 2.10.5

- bricks.json格式化
- bricks.json 格式化

## version 2.10.4

- 更新action
- 更新 action

## version 2.10.3

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-leetcode-problem-rating",
"displayName": "LeetCode",
"description": "LeetCode 官方插件增强, 代码开源, 增加 LeetCode 题目难度分, 给个star吧, 球球了",
"version": "2.10.6",
"version": "2.10.7",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/actionChain/chainNode/leetcode.cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function getSolutionBySlug(question_slug: string, articles_slug: string, lang: s
opts.json = true;
opts.body = {
operationName: "solutionDetailArticle",
variables: { slug: "pan-duan-guo-ji-xiang-qi-qi-pan-zhong-yi-8dv4", orderBy: "DEFAULT" },
variables: { slug: articles_slug, orderBy: "DEFAULT" },
query: [
"query solutionDetailArticle($slug: String!, $orderBy: SolutionArticleOrderBy!) {",
" solutionArticle(slug: $slug, orderBy: $orderBy) {",
Expand Down Expand Up @@ -265,7 +265,7 @@ function getSolutionBySlug(question_slug: string, articles_slug: string, lang: s
let content = solution.content.replace(/\\n/g, "\n").replace(/\\t/g, "\t");

let solution_result: any = {};
solution_result.problem_name = "暂代题目名称";
solution_result.problem_name = solution.title;
solution_result.title = solution.title;
solution_result.url = link;
solution_result.lang = lang;
Expand Down