Commit c8c1fdcf by 郑炬波

feat: 去openid

parent 1297ea82
{ {
"name": "@ydl-packages/toolkit", "name": "@ydl-packages/toolkit",
"version": "1.0.1-next.20", "version": "1.0.1-next.22",
"description": "", "description": "",
"main": "./dist/index.umd.js", "main": "./dist/index.umd.js",
"scripts": { "scripts": {
......
...@@ -94,10 +94,6 @@ export type ToPayParams = { ...@@ -94,10 +94,6 @@ export type ToPayParams = {
*/ */
redirectUrl?: string; redirectUrl?: string;
/** /**
* 用户在微信公众号或小程序的openId
*/
openId?: string;
/**
* 支付记录id, 采用余额支付的时候如果前端有此值就带过来 * 支付记录id, 采用余额支付的时候如果前端有此值就带过来
*/ */
payId?: number; payId?: number;
......
...@@ -138,7 +138,7 @@ export class Payment { ...@@ -138,7 +138,7 @@ export class Payment {
} }
async toPay(params: ToPayParams): Promise<ToPayReturns> { 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 let quitUrl = params.quitUrl
// validate start >>> // validate start >>>
switch (payType) { switch (payType) {
...@@ -208,7 +208,6 @@ export class Payment { ...@@ -208,7 +208,6 @@ export class Payment {
quitUrl, quitUrl,
orderId, orderId,
payType, payType,
openId,
payId, payId,
...this.computeAmount(totalAmount, payType), ...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