Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
3da03434
Commit
3da03434
authored
Aug 09, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getMenu
parent
8ffb14a7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
ch-core/src/main/java/com/wwdz/ch/core/api/OfficialAccountApi.java
...rc/main/java/com/wwdz/ch/core/api/OfficialAccountApi.java
+24
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/OfficialAccountController.java
...in/java/com/wwdz/ch/wx/web/OfficialAccountController.java
+6
-0
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/OfficialAccountApiTest.java
.../test/java/com/wwdz/ch/wx/api/OfficialAccountApiTest.java
+6
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/api/OfficialAccountApi.java
View file @
3da03434
...
@@ -246,6 +246,27 @@ public class OfficialAccountApi {
...
@@ -246,6 +246,27 @@ public class OfficialAccountApi {
}
}
public
Result
getMenu
()
{
String
token
=
getAccessToken
();
String
url
=
"https://api.weixin.qq.com/cgi-bin/menu/get"
+
"?access_token="
+
token
;
OkHttpUtil
okHttpUtil
=
OkHttpUtil
.
builder
().
url
(
url
);
okHttpUtil
.
get
();
String
responseStr
=
okHttpUtil
.
async
();
logger
.
info
(
"getMenu接口返回原文1 :{}"
,
responseStr
);
String
url2
=
"https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info"
+
"?access_token="
+
token
;
OkHttpUtil
okHttpUtil2
=
OkHttpUtil
.
builder
().
url
(
url2
);
okHttpUtil2
.
get
();
String
responseStr2
=
okHttpUtil2
.
async
();
logger
.
info
(
"getMenu接口返回原文2 :{}"
,
responseStr2
);
Map
map
=
new
HashMap
<>();
map
.
put
(
"responseStr"
,
responseStr
);
map
.
put
(
"responseStr2"
,
responseStr2
);
return
Result
.
success
(
map
);
}
/**
/**
* 随机加密
* 随机加密
* @param hash
* @param hash
...
@@ -279,4 +300,7 @@ public class OfficialAccountApi {
...
@@ -279,4 +300,7 @@ public class OfficialAccountApi {
}
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
3da03434
...
@@ -45,7 +45,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -45,7 +45,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/returnOrder/**"
,
"/wx/distributionOrder/confirmSigned"
,
"/wx/distributionOrder/delivery"
,
"/wx/distributionOrder/cancel"
,
"/wx/returnOrder/**"
,
"/wx/distributionOrder/confirmSigned"
,
"/wx/distributionOrder/delivery"
,
"/wx/distributionOrder/cancel"
,
"/wx/distributionOrder/refund"
,
"/wx/distributionOrder/refund"
,
"/wx/supplierItem/findItemsOfCurrentDistributor"
,
"/wx/selfPage/updateSwitch"
,
"/wx/supplierItem/findHomePage"
,
"/wx/supplierItem/findItemsOfCurrentDistributor"
,
"/wx/selfPage/updateSwitch"
,
"/wx/supplierItem/findHomePage"
,
"/wx/specialPerformance/sendMsg"
,
"/wx/specialPerformance/sendMsgTest"
,
"/wx/groupPurchase/systemAddRecord"
"/wx/specialPerformance/sendMsg"
,
"/wx/specialPerformance/sendMsgTest"
,
"/wx/groupPurchase/systemAddRecord"
,
"/wx/officialAccount/**"
//下列路径上线注释
//下列路径上线注释
/* ,"/wx/specialPerformance/**"
/* ,"/wx/specialPerformance/**"
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/OfficialAccountController.java
View file @
3da03434
...
@@ -50,4 +50,10 @@ public class OfficialAccountController {
...
@@ -50,4 +50,10 @@ public class OfficialAccountController {
}
}
@ApiOperation
(
value
=
"getMenu"
)
@GetMapping
(
"/getMenu"
)
public
Result
getMenu
()
{
return
officialAccountApi
.
getMenu
();
}
}
}
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/OfficialAccountApiTest.java
View file @
3da03434
...
@@ -82,6 +82,12 @@ public class OfficialAccountApiTest {
...
@@ -82,6 +82,12 @@ public class OfficialAccountApiTest {
}
}
@Test
public
void
getMenu
()
{
officialAccountApi
.
getMenu
();
}
@Test
@Test
public
void
sendSmsFromExcel
()
{
public
void
sendSmsFromExcel
()
{
String
fileName
=
"喜马拉雅品类用户手机号.xlsx"
;
String
fileName
=
"喜马拉雅品类用户手机号.xlsx"
;
...
...
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