Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
f89be0a0
Commit
f89be0a0
authored
Nov 28, 2020
by
缪晖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
groupBuy test
parent
6134465a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
order-application-service/src/main/java/cn/freemud/controller/test/TestController.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/thirdparty/WeChatClient.java
+1
-1
order-application-service/src/test/java/cn.freemud/client/EcologyAdminApplicationClientTest.java
+2
-2
No files found.
order-application-service/src/main/java/cn/freemud/controller/test/TestController.java
View file @
f89be0a0
...
...
@@ -115,7 +115,7 @@ public class TestController {
//String requestUrl = "https://api.weixin.qq.com/wxa/business/groupBuy/createOrder?access_token=" + accessToken;
log
.
info
(
"bean:{}"
,
groupBuyRequest
);
String
result
=
weChatClient
.
groupBuyCreateOrder
(
accessToken
,
groupBuyRequest
);
String
result
=
weChatClient
.
groupBuyCreateOrder
(
groupBuyRequest
);
BaseResponse
baseResponse
=
new
BaseResponse
();
baseResponse
.
setResult
(
result
);
...
...
order-application-service/src/main/java/cn/freemud/service/thirdparty/WeChatClient.java
View file @
f89be0a0
...
...
@@ -74,6 +74,6 @@ public interface WeChatClient {
@PostMapping
(
value
=
"wxa/business/groupBuy/createOrder?access_token=39_5B21AfHFgOKmBeoFsnN_2wO0FUV2wwf6VF7i74eD0B15yqfmNJOyAS1f4N9HIUeHZ26Jn_FgsdJyBXGH09sS1-ADS2dGRRTFJ1YYhwjHsgolD35V2m5QFF005G-5brre6gk9sWN6Z9Ih-_BBNFWgAEDYQH"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
String
groupBuyCreateOrder
(
@
PathVariable
(
"accessToken"
)
String
accessToken
,
@
RequestBody
GroupBuyRequest
groupBuyRequest
);
String
groupBuyCreateOrder
(
@RequestBody
GroupBuyRequest
groupBuyRequest
);
}
order-application-service/src/test/java/cn.freemud/client/EcologyAdminApplicationClientTest.java
View file @
f89be0a0
...
...
@@ -97,7 +97,7 @@ public class EcologyAdminApplicationClientTest {
//String requestUrl = "https://api.weixin.qq.com/wxa/business/groupBuy/createOrder?access_token=" + accessToken;
String
result
=
weChatClient
.
groupBuyCreateOrder
(
accessToken
,
groupBuyRequest
);
log
.
info
(
result
);
//
String result = weChatClient.groupBuyCreateOrder(accessToken, groupBuyRequest);
//
log.info(result);
}
}
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