Skip to content

Commit 101957d

Browse files
authored
Merge pull request #144 from ccagml/main
尝试修复获取不到用户名的情况
2 parents d4d22a5 + 7818b03 commit 101957d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## version 2.11.10
2+
3+
- 尝试修复获取不到用户名的情况
4+
15
## version 2.11.9
26

37
- 修复 2.11.8 登录错误

package.json

+1-1
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.11.9",
5+
"version": "2.11.10",
66
"author": "ccagml",
77
"publisher": "ccagml",
88
"license": "MIT",

src/controller/LoginController.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class LoginContorller {
8282
}
8383
if (successMatch.code == 100) {
8484
childProc.stdin?.end();
85-
result = successMatch.user_name;
86-
return resolve(successMatch.user_name);
85+
result = successMatch.user_name || name || "没有取到用户名"; //successMatch.user_name;
86+
return resolve(result);
8787
} else if (successMatch.code < 0) {
8888
childProc.stdin?.end();
8989
return reject(new Error(successMatch.msg));

0 commit comments

Comments
 (0)