Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
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
QA
qa-platform
Commits
2196716f
Commit
2196716f
authored
Jun 09, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改Vcc.java的main方法,方便打印身份证正反面的base64字符串
parent
1bc533f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
Vcc.java
src/main/java/cn/qg/qaplatform/process/Vcc.java
+19
-4
No files found.
src/main/java/cn/qg/qaplatform/process/Vcc.java
View file @
2196716f
...
@@ -7,6 +7,7 @@ import cn.qg.qaplatform.utils.JsonTransUtils;
...
@@ -7,6 +7,7 @@ import cn.qg.qaplatform.utils.JsonTransUtils;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.jayway.jsonpath.JsonPath
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.ClassPathResource
;
...
@@ -431,9 +432,23 @@ public class Vcc {
...
@@ -431,9 +432,23 @@ public class Vcc {
}
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
Map
<
String
,
String
>
loginResult
=
login
(
"vcc3"
,
"18300000418"
,
"214"
,
"214"
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
uuid
=
loginResult
.
get
(
"uuid"
);
map
.
put
(
"clarity"
,
74
);
String
riskNo
=
getRiskNo
(
"vcc3"
,
uuid
);
map
.
put
(
"multiWarning"
,
"00010010"
);
vccWindControlCreditCallback
(
"vcc3"
,
"1"
,
riskNo
,
true
,
10000
);
map
.
put
(
"birth"
,
"19900104"
);
map
.
put
(
"nation"
,
"汉"
);
map
.
put
(
"type"
,
"xyqb"
);
map
.
put
(
"code"
,
0
);
map
.
put
(
"isShootPagePortrait"
,
true
);
map
.
put
(
"address"
,
"北京市海淀区码农村22号"
);
map
.
put
(
"idNo"
,
"320101199001040432"
);
map
.
put
(
"orderNo"
,
"123456"
);
map
.
put
(
"warning"
,
"00010000"
);
map
.
put
(
"msg"
,
"OCR获取成功"
);
map
.
put
(
"name"
,
"张三"
);
map
.
put
(
"sex"
,
"男"
);
String
frontBase64Str
=
Vcc
.
readTxt
(
"back.txt"
);
map
.
put
(
"base64Str"
,
frontBase64Str
);
System
.
out
.
println
(
JSON
.
toJSONString
(
map
));
}
}
}
}
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