Commit c8c1fdcf by 郑炬波

feat: 去openid

parent 1297ea82
{
"name": "@ydl-packages/toolkit",
"version": "1.0.1-next.20",
"version": "1.0.1-next.22",
"description": "",
"main": "./dist/index.umd.js",
"scripts": {
......
......@@ -94,10 +94,6 @@ export type ToPayParams = {
*/
redirectUrl?: string;
/**
* 用户在微信公众号或小程序的openId
*/
openId?: string;
/**
* 支付记录id, 采用余额支付的时候如果前端有此值就带过来
*/
payId?: number;
......
......@@ -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),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment