提交 e4ac241f 编写于 作者: D DCloud_LXH

fix(mp-kuaishou): ks.requestPayment -> ks.pay question/152948

上级 06c58e1b
......@@ -67,6 +67,6 @@ export {
MPComponentInstance,
CreateLifetimesOptions,
} from './runtime/component'
export { MPProtocols } from './api/protocols'
export { MPProtocols, MPProtocol } from './api/protocols'
// mp-alipay
export { CreateComponentOptions } from './runtime/componentInstance'
export {
import {
redirectTo,
navigateTo,
previewImage,
getSystemInfo,
getSystemInfoSync,
} from '@dcloudio/uni-mp-core'
import type { MPProtocol } from '@dcloudio/uni-mp-core'
const requestPayment: MPProtocol = {
name: ks.pay ? 'pay' : 'requestPayment',
args(fromArgs: Data, toArgs: Data) {
if (typeof fromArgs === 'object') {
// ks.pay 服务类型 id(固定值为 '1')
if (ks.pay && !fromArgs.serviceId) toArgs.serviceId = '1'
}
},
}
export {
redirectTo,
navigateTo,
previewImage,
getSystemInfo,
getSystemInfoSync,
requestPayment,
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册