Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
9733212e
Commit
9733212e
authored
Jul 30, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
41bdbfa3
7b7579f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
pom.xml
community-service/pom.xml
+5
-0
BizUtils.java
...vice/src/main/java/com/tanpu/community/util/BizUtils.java
+9
-3
pom.xml
pom.xml
+6
-0
No files found.
community-service/pom.xml
View file @
9733212e
...
@@ -18,6 +18,11 @@
...
@@ -18,6 +18,11 @@
<artifactId>
community-api
</artifactId>
<artifactId>
community-api
</artifactId>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.tanpu</groupId>-->
<!-- <artifactId>tanpu-biz-common</artifactId>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
...
...
community-service/src/main/java/com/tanpu/community/util/BizUtils.java
View file @
9733212e
...
@@ -2,6 +2,7 @@ package com.tanpu.community.util;
...
@@ -2,6 +2,7 @@ package com.tanpu.community.util;
import
com.tanpu.community.api.beans.qo.ThemeContentQo
;
import
com.tanpu.community.api.beans.qo.ThemeContentQo
;
import
com.tanpu.community.api.beans.qo.ThemeQo
;
import
com.tanpu.community.api.beans.qo.ThemeQo
;
import
org.apache.commons.codec.binary.Base64
;
import
com.tanpu.community.api.enums.RelTypeEnum
;
import
com.tanpu.community.api.enums.RelTypeEnum
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -46,8 +47,13 @@ public class BizUtils {
...
@@ -46,8 +47,13 @@ public class BizUtils {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
formatCountNumber
(
110400
));
String
sk
=
"59V9ke9txaIFzWxHFKTb1eoOOpmKpJ"
;
System
.
out
.
println
(
formatCountNumber
(
111100
));
String
policy
=
"{\"expiration\":\"2021-07-30T12:00:00.000Z\",\"conditions\":[[\"content-length-range\",0,1024*1024*1024]]}"
;
System
.
out
.
println
(
formatCountNumber
(
1000
));
String
encodePolicy
=
new
String
(
Base64
.
encodeBase64
(
policy
.
getBytes
()));
String
sign
=
com
.
aliyun
.
oss
.
common
.
auth
.
ServiceSignature
.
create
().
computeSignature
(
sk
,
encodePolicy
);
System
.
out
.
println
(
encodePolicy
);
System
.
out
.
println
(
sign
);
}
}
}
}
pom.xml
View file @
9733212e
...
@@ -69,6 +69,12 @@
...
@@ -69,6 +69,12 @@
<version>
${project.version}
</version>
<version>
${project.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.tanpu
</groupId>
<artifactId>
tanpu-biz-common
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.tanpu
</groupId>
<groupId>
com.tanpu
</groupId>
<artifactId>
common
</artifactId>
<artifactId>
common
</artifactId>
...
...
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