Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
8e9689a7
Commit
8e9689a7
authored
Jun 20, 2019
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加VCC短信验证码专用接口(6位数字)
parent
46d8187c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
19 deletions
+57
-19
SmsController.java
...uantgroup/xyqb/controller/internal/sms/SmsController.java
+47
-19
TestJdk8.java
src/test/java/common/TestJdk8.java
+10
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/internal/sms/SmsController.java
View file @
8e9689a7
This diff is collapsed.
Click to expand it.
src/test/java/common/TestJdk8.java
View file @
8e9689a7
...
@@ -2,12 +2,14 @@ package common;
...
@@ -2,12 +2,14 @@ package common;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Random
;
import
java.util.UUID
;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.util.AESUtil
;
import
cn.quantgroup.xyqb.util.AESUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.RandomStringUtils
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -18,6 +20,7 @@ import cn.quantgroup.xyqb.util.ValidationUtil;
...
@@ -18,6 +20,7 @@ import cn.quantgroup.xyqb.util.ValidationUtil;
@Slf4j
@Slf4j
@RunWith
(
JUnit4
.
class
)
@RunWith
(
JUnit4
.
class
)
public
class
TestJdk8
{
public
class
TestJdk8
{
final
static
String
RANDOM_CHARS
=
"0123456789"
;
@Test
@Test
public
void
testString
()
{
public
void
testString
()
{
...
@@ -46,4 +49,11 @@ public class TestJdk8 {
...
@@ -46,4 +49,11 @@ public class TestJdk8 {
log
.
info
(
"uuid:{}"
,
uuid
);
log
.
info
(
"uuid:{}"
,
uuid
);
}
}
@Test
public
void
random
()
{
for
(
int
i
=
0
;
i
<
10
;
i
++){
log
.
info
(
"{}-random:{}"
,
i
,
RandomStringUtils
.
random
(
6
,
RANDOM_CHARS
));
}
}
}
}
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