Skip to content

Commit 9d551b7

Browse files
committed
* 需要校验feature id 时,如果传入多个feature id,最后在判断加密狗授权是否正确,中途不在输出日志
1 parent 3b6bf5a commit 9d551b7

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
### 更新日志
22

3-
#### PyLdkV1.1.4 - 2023-05-08
4-
* 初始化的时候就需要校验feature id 是否存在
3+
4+
#### PyLdkV1.1.5 - 2024-05-08
5+
* 需要校验feature id 时,如果传入多个feature id,最后在判断加密狗授权是否正确,中途不在输出日志
56
---
67

78

89
<details onclose>
910
<summary>查看更多更新日志</summary>
1011

12+
#### PyLdkV1.1.4 - 2023-05-08
13+
* 初始化的时候就需要校验feature id 是否存在
14+
---
15+
16+
1117
#### PyLdkV1.1.3 - 2023-05-08
1218
* 支持自定义授权ID登录
1319
* 自动打包使用最新的ubuntu

pyldk/pyldk.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_feature_id(self):
3737
feature_id = self.adapter.get_info()
3838
return feature_id
3939

40-
def login(self,feature_id=None):
40+
def login(self,feature_id=None,is_mutiple_feature_id=False):
4141
## 首先判断加密狗是否存在
4242
login_status = False
4343
if feature_id is None:
@@ -57,7 +57,8 @@ def login(self,feature_id=None):
5757
else:
5858
self.adapter.log("加密狗初始化失败",haspStruct.status)
5959
else:
60-
self.adapter.show_staus("加密狗初始化失败", haspStruct.status,feature_id)
60+
if is_mutiple_feature_id is False:
61+
self.adapter.show_staus("加密狗初始化失败", haspStruct.status,feature_id)
6162
return haspStruct,feature_id,login_status
6263

6364

0 commit comments

Comments
 (0)