Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-05-22 15:51:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5007535bf2d708316ad1162ea6c4f3bbe9c5760d
5007535b
1 parent
0b2cabde
feat(支付接口): 更新微信支付接口并新增支付查询接口
更新微信支付接口的URL,并将请求方法从GET改为POST。新增微信支付查询接口,以便支持支付状态查询功能。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
src/api/wx/pay.js
src/api/wx/pay.js
View file @
5007535
...
...
@@ -2,14 +2,15 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-06-09 13:32:44
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
2-06-09 13:42:06
* @FilePath: /
tswj/src/api/wx/config
.js
* @LastEditTime: 202
5-05-22 15:47:33
* @FilePath: /
mlaj/src/api/wx/pay
.js
* @Description:
*/
import
{
fn
,
fetch
}
from
'@/api/fn'
;
const
Api
=
{
WX_PAY
:
'c/bill_paymentForBill.do'
,
WX_PAY
:
'/srv/?a=pay'
,
WX_PAY_CHECK
:
'/srv/?a=pay_check'
,
}
/**
...
...
@@ -17,4 +18,11 @@ const Api = {
* @param {*}
* @returns {*}
*/
export
const
wxPayAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
WX_PAY
,
params
));
export
const
wxPayAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
WX_PAY
,
params
));
/**
* @description 微信支付查询接口
* @param {*} params
* @returns
*/
export
const
wxPayCheckAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
WX_PAY_CHECK
,
params
));
...
...
Please
register
or
login
to post a comment