Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
fe837760
Commit
fe837760
authored
May 08, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除删除手机号的去掉
parent
8c43bc04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+12
-0
No files found.
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
fe837760
...
@@ -197,6 +197,7 @@ public void sendMessage() {
...
@@ -197,6 +197,7 @@ public void sendMessage() {
@Test
@Test
public
void
extensionList3
()
{
public
void
extensionList3
()
{
// msg59NLDQAAKvRi-fguFcKRVOjeoJKRJw
// String img="https://pic01-10001430.image.myqcloud.com/53205d69-01f1-4706-a258-014d59d8d106";
// String img="https://pic01-10001430.image.myqcloud.com/53205d69-01f1-4706-a258-014d59d8d106";
// byte[] aByte = getByte(img);
// byte[] aByte = getByte(img);
// JSONResponse response = qywxSuiteApiService.uploadMedia("ww9ede832a84b7ae5f", "ww2c34dc56739bb105", aByte, QywxMediaTypeEnum.IMAGE.getCode());
// JSONResponse response = qywxSuiteApiService.uploadMedia("ww9ede832a84b7ae5f", "ww2c34dc56739bb105", aByte, QywxMediaTypeEnum.IMAGE.getCode());
...
@@ -211,6 +212,17 @@ public void sendMessage() {
...
@@ -211,6 +212,17 @@ public void sendMessage() {
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response1
));
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response1
));
}
}
@Test
public
void
extensionList4
()
{
// msg59NLDQAAKvRi-fguFcKRVOjeoJKRJw
// String img="https://pic01-10001430.image.myqcloud.com/53205d69-01f1-4706-a258-014d59d8d106";
// byte[] aByte = getByte(img);
// JSONResponse response = qywxSuiteApiService.uploadMedia("ww9ede832a84b7ae5f", "ww2c34dc56739bb105", aByte, QywxMediaTypeEnum.IMAGE.getCode());
// System.out.println(JSONObject.toJSONString(response));
JSONResponse
response1
=
qywxSuiteApiService
.
resultExternalMessage
(
"ww9ede832a84b7ae5f"
,
"ww2c34dc56739bb105"
,
"msg59NLDQAAKvRi-fguFcKRVOjeoJKRJw"
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response1
));
}
private
byte
[]
getByte
(
String
strUrl
){
private
byte
[]
getByte
(
String
strUrl
){
ByteArrayOutputStream
baos
=
null
;
ByteArrayOutputStream
baos
=
null
;
try
try
...
...
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