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
1
Merge Requests
1
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
82e8e59d
Commit
82e8e59d
authored
May 22, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
b4d117bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
QywxCallbackController.java
.../haoban/manage/web/controller/QywxCallbackController.java
+5
-5
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/QywxCallbackController.java
View file @
82e8e59d
...
...
@@ -98,14 +98,14 @@ public class QywxCallbackController extends WebBaseController {
@IgnoreLogin
public
Object
init
(
Object
object
)
{
String
callbackUrl
=
"https://www.gicdev.com/haoban-manage3-operation-web/qywx-msg-notice"
;
Map
<
String
,
Object
>
map1
=
HttpClient
.
getWinxinResByJson
(
String
.
format
(
url
,
"init"
)
,
"{}
"
)
;
JSONObject
json
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
map1
.
get
(
"data"
))
)
;
String
uuid
=
json
.
getString
(
"uuid"
)
;
String
map1
=
HttpClient
.
sendPostJSON
(
String
.
format
(
url
,
"init"
)
,
"{}"
,
"utf-8
"
)
;
JSONObject
json
=
JSONObject
.
parseObject
(
map1
)
;
String
uuid
=
json
.
get
JSONObject
(
"data"
).
get
String
(
"uuid"
)
;
JSONObject
setCallbackUrl
=
new
JSONObject
()
;
setCallbackUrl
.
put
(
"uuid"
,
uuid
)
;
setCallbackUrl
.
put
(
"url"
,
callbackUrl
)
;
Map
<
String
,
Object
>
map2
=
HttpClient
.
getWinxinResByJson
(
String
.
format
(
url
,
"SetCallbackUrl"
),
setCallbackUrl
.
toJSONString
()
)
;
Map
<
String
,
Object
>
map3
=
HttpClient
.
getWinxinResByJson
(
String
.
format
(
url
,
"getQrCode"
),
setCallbackUrl
.
toJSONString
()
)
;
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
)
;
...
...
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