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
fe627ee3
Commit
fe627ee3
authored
May 22, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
82e8e59d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
QywxCallbackController.java
.../haoban/manage/web/controller/QywxCallbackController.java
+8
-10
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/QywxCallbackController.java
View file @
fe627ee3
...
...
@@ -12,7 +12,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@Controller
...
...
@@ -96,7 +98,7 @@ public class QywxCallbackController extends WebBaseController {
@RequestMapping
(
"qywx-init"
)
@IgnoreLogin
public
Object
init
(
Object
object
)
{
public
List
<
String
>
init
(
Object
object
)
{
String
callbackUrl
=
"https://www.gicdev.com/haoban-manage3-operation-web/qywx-msg-notice"
;
String
map1
=
HttpClient
.
sendPostJSON
(
String
.
format
(
url
,
"init"
)
,
"{}"
,
"utf-8"
)
;
JSONObject
json
=
JSONObject
.
parseObject
(
map1
)
;
...
...
@@ -106,14 +108,10 @@ public class QywxCallbackController extends WebBaseController {
setCallbackUrl
.
put
(
"url"
,
callbackUrl
)
;
String
map2
=
HttpClient
.
sendPostJSON
(
String
.
format
(
url
,
"SetCallbackUrl"
),
setCallbackUrl
.
toJSONString
(),
"utf-8"
)
;
String
map3
=
HttpClient
.
sendPostJSON
(
String
.
format
(
url
,
"getQrCode"
),
setCallbackUrl
.
toJSONString
(),
"utf-8"
)
;
Map
<
String
,
Object
>
retMap
=
new
HashMap
<>()
;
retMap
.
put
(
"map1"
,
map1
);
retMap
.
put
(
"map2"
,
map2
)
;
retMap
.
put
(
"map3"
,
map3
)
;
return
retMap
;
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
String
.
format
(
url
,
"init"
));
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
map1
);
list
.
add
(
map2
)
;
list
.
add
(
map3
)
;
return
list
;
}
}
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