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
a5991b89
Commit
a5991b89
authored
Apr 20, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
40c60848
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
AssetController.java
...nergy/chnmuseum/party/web/controller/AssetController.java
+1
-1
ChinaMobileRestApiController.java
...um/party/web/controller/ChinaMobileRestApiController.java
+10
-1
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/AssetController.java
View file @
a5991b89
...
...
@@ -153,7 +153,7 @@ public class AssetController extends BaseController {
final
List
<
TBoxOperation
>
tBoxOperationList
=
assetService
.
listBoxByOrgan
();
final
Map
<
String
,
InputStream
>
map
=
new
LinkedHashMap
<>(
tBoxOperationList
.
size
());
for
(
TBoxOperation
tBoxOperation
:
tBoxOperationList
)
{
map
.
put
(
tBoxOperation
.
getOrganName
()
+
"-"
+
tBoxOperation
.
getMac
()
+
".cipher"
,
IoUtil
.
toStream
(
RSAUtils
.
encrypt
(
VideoEncryptUtil
.
cipher
,
tBoxOperation
.
getPublicKey
()),
StandardCharsets
.
UTF_8
));
map
.
put
(
tBoxOperation
.
getOrganName
()
+
"-"
+
tBoxOperation
.
getMac
()
.
replaceAll
(
":|-"
,
"_"
)
+
".cipher"
,
IoUtil
.
toStream
(
RSAUtils
.
encrypt
(
VideoEncryptUtil
.
cipher
,
tBoxOperation
.
getPublicKey
()),
StandardCharsets
.
UTF_8
));
}
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
String
[]
paths
=
map
.
keySet
().
toArray
(
new
String
[
0
]);
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ChinaMobileRestApiController.java
View file @
a5991b89
...
...
@@ -660,7 +660,16 @@ public class ChinaMobileRestApiController extends BaseController {
current
=
currentList
.
get
(
0
);
}
Map
map
=
new
HashMap
();
map
.
put
(
"isLatest"
,
versionNo
.
equalsIgnoreCase
(
current
.
getAppVersion
()));
if
(
StringUtils
.
isNotBlank
(
versionNo
))
{
map
.
put
(
"isLatest"
,
versionNo
.
equalsIgnoreCase
(
current
.
getAppVersion
()));
}
else
{
}
map
.
put
(
"versionNo"
,
current
.
getAppVersion
());
map
.
put
(
"versionUrl"
,
current
.
getApkUrl
());
map
.
put
(
"updateLog"
,
current
.
getUpdateLog
());
...
...
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