Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
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
1
Merge Requests
1
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
许振钊
ydl-packages
Commits
c8c1fdcf
Commit
c8c1fdcf
authored
Sep 08, 2022
by
郑炬波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 去openid
parent
1297ea82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
package.json
packages/toolkit/package.json
+1
-1
Defined.ts
packages/toolkit/src/Payment/Defined.ts
+0
-4
Payment.ts
packages/toolkit/src/Payment/Payment.ts
+1
-2
No files found.
packages/toolkit/package.json
View file @
c8c1fdcf
{
"name"
:
"@ydl-packages/toolkit"
,
"version"
:
"1.0.1-next.2
0
"
,
"version"
:
"1.0.1-next.2
2
"
,
"description"
:
""
,
"main"
:
"./dist/index.umd.js"
,
"scripts"
:
{
...
...
packages/toolkit/src/Payment/Defined.ts
View file @
c8c1fdcf
...
...
@@ -94,10 +94,6 @@ export type ToPayParams = {
*/
redirectUrl
?:
string
;
/**
* 用户在微信公众号或小程序的openId
*/
openId
?:
string
;
/**
* 支付记录id, 采用余额支付的时候如果前端有此值就带过来
*/
payId
?:
number
;
...
...
packages/toolkit/src/Payment/Payment.ts
View file @
c8c1fdcf
...
...
@@ -138,7 +138,7 @@ export class Payment {
}
async
toPay
(
params
:
ToPayParams
):
Promise
<
ToPayReturns
>
{
const
{
totalAmount
,
payType
,
returnUrl
,
orderId
,
redirectUrl
,
openId
,
payId
}
=
params
const
{
totalAmount
,
payType
,
returnUrl
,
orderId
,
redirectUrl
,
payId
}
=
params
let
quitUrl
=
params
.
quitUrl
// validate start >>>
switch
(
payType
)
{
...
...
@@ -208,7 +208,6 @@ export class Payment {
quitUrl
,
orderId
,
payType
,
openId
,
payId
,
...
this
.
computeAmount
(
totalAmount
,
payType
),
}
...
...
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