Skip to content

尝试修复获取不到用户名的情况 #144

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 1 commit into from
Jan 16, 2023
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## version 2.11.10

- 尝试修复获取不到用户名的情况

## version 2.11.9

- 修复 2.11.8 登录错误
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.11.9",
"version": "2.11.10",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/controller/LoginController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class LoginContorller {
}
if (successMatch.code == 100) {
childProc.stdin?.end();
result = successMatch.user_name;
return resolve(successMatch.user_name);
result = successMatch.user_name || name || "没有取到用户名"; //successMatch.user_name;
return resolve(result);
} else if (successMatch.code < 0) {
childProc.stdin?.end();
return reject(new Error(successMatch.msg));
Expand Down