Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
edfa7bf9
Commit
edfa7bf9
authored
Sep 20, 2024
by
chenchao.deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付回调
parent
0bebe83d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
+38
-2
AccountController.java
.../browserbackend/account/controller/AccountController.java
+1
-1
PayCallBackController.java
...wserbackend/account/controller/PayCallBackController.java
+36
-0
WebSecurityConfig.java
...m/edgec/browserbackend/auth/config/WebSecurityConfig.java
+1
-1
No files found.
src/main/java/com/edgec/browserbackend/account/controller/AccountController.java
View file @
edfa7bf9
...
...
@@ -36,7 +36,7 @@ import java.util.*;
@RequestMapping
(
"/user"
)
public
class
AccountController
{
public
static
final
String
WECHAT_PAY_CALLBACK_URL
=
"http
s://cloudam.cn/accounts/0xwxpaycallback
/"
;
public
static
final
String
WECHAT_PAY_CALLBACK_URL
=
"http
://47.119.25.86:1729/payCallBack/wx
/"
;
public
static
final
String
ALIPAY_PAY_CALLBACK_URL
=
"https://cloudam.cn/accounts/0xalipaycallback/"
;
...
...
src/main/java/com/edgec/browserbackend/account/controller/PayCallBackController.java
0 → 100644
View file @
edfa7bf9
package
com
.
edgec
.
browserbackend
.
account
.
controller
;
import
com.edgec.browserbackend.account.service.PaymentService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 回调接口
*
* @Author: Chen
* @Date: 2024/09/20
*/
@RestController
@RequestMapping
(
"/payCallBack"
)
public
class
PayCallBackController
{
@Autowired
private
PaymentService
paymentService
;
/**
* 使用微信进行账户充值成功后,微信会调用该接口
*/
@RequestMapping
(
path
=
"/wx/{tradno}"
)
public
String
wechatPayCallback
(
@PathVariable
String
tradno
)
{
return
paymentService
.
wechatPayCallback
(
tradno
);
}
@RequestMapping
(
path
=
"/ali/{tradno}"
)
public
void
alipayPayCallback
(
@PathVariable
String
tradno
)
{
paymentService
.
alipaCallback
(
tradno
);
}
}
src/main/java/com/edgec/browserbackend/auth/config/WebSecurityConfig.java
View file @
edfa7bf9
...
...
@@ -34,7 +34,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
public
void
configure
(
WebSecurity
web
)
throws
Exception
{
web
.
ignoring
()
.
antMatchers
(
"/user/authCode"
,
"/user/signUp"
,
"/user/forgot**"
,
"/0xadministrator/getconfig**"
);
"/user/forgot**"
,
"/0xadministrator/getconfig**"
,
"/payCallBack/*"
);
}
@Override
...
...
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