Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengtianlai3
ioc_sixiang_license
Commits
5b2859f6
Commit
5b2859f6
authored
Nov 24, 2022
by
AfirSraftGarrier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改连接测试
parent
efaf7dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
AuthManager.java
...e/src/main/java/iot/sixiang/license/auth/AuthManager.java
+5
-0
No files found.
license/src/main/java/iot/sixiang/license/auth/AuthManager.java
View file @
5b2859f6
...
...
@@ -67,18 +67,22 @@ public class AuthManager {
public
boolean
auth
(
String
appId
,
String
sn
,
String
sign
)
{
if
(!
allApply
.
containsKey
(
appId
))
{
log
.
info
(
"no valid appId..."
);
return
false
;
}
if
(!
deviceManager
.
getContainSn
(
sn
))
{
log
.
info
(
"no this sn..."
);
return
false
;
}
DeviceVo
device
=
deviceManager
.
getDevice
(
sn
);
// 未绑定
if
(
device
.
getSnBind
()
==
null
)
{
log
.
info
(
"bind sn null..."
);
return
false
;
}
int
deviceId
=
device
.
getDeviceId
();
if
(
deviceBlackMap
.
containsKey
(
deviceId
))
{
log
.
info
(
"in black..."
);
return
false
;
}
Apply
apply
=
allApply
.
get
(
appId
);
...
...
@@ -88,6 +92,7 @@ public class AuthManager {
if
(
CommonUtil
.
toUpperCaseByEnglish
(
sign
).
equals
(
CommonUtil
.
toUpperCaseByEnglish
(
valSHA1
)))
{
return
true
;
}
else
{
log
.
info
(
"sign no valid:"
+
input
);
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment