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
bcbc1d72
Commit
bcbc1d72
authored
May 22, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
e5efa4e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
QywxCallbackController.java
.../haoban/manage/web/controller/QywxCallbackController.java
+9
-4
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/QywxCallbackController.java
View file @
bcbc1d72
...
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.authcenter.commons.util.IgnoreLogin
;
import
com.gic.commons.util.HttpClient
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
org.apache.commons.io.IOUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -98,7 +99,7 @@ public class QywxCallbackController extends WebBaseController {
@RequestMapping
(
"qywx-init"
)
@IgnoreLogin
public
List
<
String
>
init
(
Object
object
)
{
public
HaobanResponse
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"
)
;
logger
.
info
(
map1
);
...
...
@@ -109,8 +110,12 @@ 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"
)
;
logger
.
info
(
map2
);
logger
.
info
(
map3
);
return
null
;
List
<
String
>
list
=
new
ArrayList
<>()
;
list
.
add
(
map1
);
list
.
add
(
map2
);
list
.
add
(
map3
);
HaobanResponse
resp
=
new
HaobanResponse
()
;
resp
.
setResult
(
list
);
return
resp
;
}
}
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