Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
PeiZhen-Java
peizhen-java
Commits
085d7d00
Commit
085d7d00
authored
Sep 26, 2023
by
sdif
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
77c4e6fb
cc0802d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
pz-merchant/src/main/java/com/pz/merchant/controller/applet/WechatLoginController.java
+1
-1
No files found.
pz-merchant/src/main/java/com/pz/merchant/controller/applet/WechatLoginController.java
View file @
085d7d00
...
@@ -86,7 +86,7 @@ public class WechatLoginController extends BaseController {
...
@@ -86,7 +86,7 @@ public class WechatLoginController extends BaseController {
@SaIgnore
@SaIgnore
@GetMapping
(
"wxopenid"
)
@GetMapping
(
"wxopenid"
)
public
void
wxopenid
(
String
userId
,
String
code
,
String
state
,
HttpServletResponse
response
)
throws
IOException
{
public
void
wxopenid
(
String
userId
,
String
code
,
String
state
,
HttpServletResponse
response
)
throws
IOException
{
String
url
=
"https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx
6cc2fd1bca9472ae&secret=2edf95828b1a19fc5149f6650cde71f1
&code="
+
code
String
url
=
"https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx
ab851ed88308824f&secret=9a548dfb2c497fd73ed92ed34e5f4242
&code="
+
code
+
"&grant_type=authorization_code"
;
+
"&grant_type=authorization_code"
;
RestTemplate
restTemplate
=
new
RestTemplate
();
RestTemplate
restTemplate
=
new
RestTemplate
();
String
result
=
restTemplate
.
getForObject
(
url
,
String
.
class
);
String
result
=
restTemplate
.
getForObject
(
url
,
String
.
class
);
...
...
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