Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
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
liqin
chnmuseum-party
Commits
6cf497be
Commit
6cf497be
authored
3 years ago
by
wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取机顶盒密钥
parent
e538c807
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ChinaMobileRestApiController.java
...um/party/web/controller/ChinaMobileRestApiController.java
+2
-2
TBoxOperationController.java
...nmuseum/party/web/controller/TBoxOperationController.java
+5
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ChinaMobileRestApiController.java
View file @
6cf497be
...
...
@@ -137,10 +137,10 @@ public class ChinaMobileRestApiController extends BaseController {
jsonObject
.
put
(
"key"
,
tBoxOperation
.
getPrivateKey
());
return
getResult
(
jsonObject
);
}
else
{
throw
new
InterfaceException
(
"4
00"
,
"您无权获取本单位机顶盒密钥"
);
return
getFailResult
(
"5
00"
,
"您无权获取本单位机顶盒密钥"
);
}
}
throw
new
InterfaceException
(
"4
00"
,
"未查询到相关机顶盒信息"
);
return
getFailResult
(
"5
00"
,
"未查询到相关机顶盒信息"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TBoxOperationController.java
View file @
6cf497be
...
...
@@ -109,6 +109,11 @@ public class TBoxOperationController extends BaseController {
if
(
tBoxOperation
!=
null
&&
StringUtils
.
isNotBlank
(
tBoxOperation
.
getMac
()))
{
tBoxOperation
.
setMac
(
tBoxOperation
.
getMac
().
toUpperCase
());
}
if
(
2
==
tBoxOperation
.
getStatus
())
{
final
ArrayList
<
String
>
rsaKeys
=
RSAUtils
.
createRSAKeys
();
tBoxOperation
.
setPublicKey
(
rsaKeys
.
get
(
0
));
tBoxOperation
.
setPrivateKey
(
rsaKeys
.
get
(
1
));
}
boolean
flag
=
tBoxOperationService
.
updateById
(
tBoxOperation
);
UpdateWrapper
<
TUser
>
wrapper
=
new
UpdateWrapper
<>();
wrapper
.
eq
(
"org_id"
,
tBoxOperation
.
getOrganId
());
...
...
This diff is collapsed.
Click to expand it.
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