Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
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
雷紫添
xzxt-api-report
Commits
f5f5f43a
Commit
f5f5f43a
authored
Dec 21, 2020
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5bc8c6af
a2396d1c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/main/java/com/founder/common/IdentityCardVerification.java
+2
-2
src/main/java/com/founder/test.java
+4
-4
No files found.
src/main/java/com/founder/common/IdentityCardVerification.java
View file @
f5f5f43a
...
...
@@ -68,8 +68,8 @@ public class IdentityCardVerification {
}
int
modValue
=
theLastOne
%
11
;
String
strVerifyCode
=
wf
[
modValue
];
iDCardNo
=
iDCardNo
+
strVerifyCode
;
if
(
idStr
.
length
()
==
18
&&!
iDCardNo
.
equals
(
idStr
))
{
iDCardNo
=
iDCardNo
+
strVerifyCode
.
toUpperCase
()
;
if
(
idStr
.
length
()
==
18
&&!
iDCardNo
.
equals
(
idStr
.
toUpperCase
()
))
{
return
"身份证无效,不是合法的身份证号码"
;
}
}
catch
(
Exception
e
){
...
...
src/main/java/com/founder/test.java
View file @
f5f5f43a
...
...
@@ -33,17 +33,17 @@ public class test {
byte[] in_b = swapStream.toByteArray(); //in_b为转换之后的结果
final String encodedText = encoder.encodeToString(in_b);*/
Jccj
jccj
=
new
Jccj
();
File
file
=
new
File
(
"D:/
appone
.zip"
);
File
file
=
new
File
(
"D:/
JCCJ-R1100000500002014070001
.zip"
);
FileInputStream
inputFile
=
new
FileInputStream
(
file
);
byte
[]
buffer
=
new
byte
[(
int
)
file
.
length
()];
inputFile
.
read
(
buffer
);
inputFile
.
close
();
//编码
final
String
encodedText
=
encoder
.
encodeToString
(
buffer
);
System
.
out
.
println
(
encodedText
);
jccj
.
setXxsb_zip
(
encodedText
);
jccj
.
setTaskid
(
"JC
XX-R1100000500002014070006
"
);
jccj
.
setUser_id
(
"
350128197311050034
"
);
jccj
.
setTaskid
(
"JC
CJ-R1100000500002014070002
"
);
jccj
.
setUser_id
(
"
15252719870504511x
"
);
jccj
.
setUser_dept
(
"1400000000"
);
jccj
.
setVersion
(
"1.00"
);
//发送,httpclient 包含zip包
...
...
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