diff --git a/docs/uniCloud/unipay.md b/docs/uniCloud/unipay.md index 4723a41539c1dfd74cb38b00f793458cc54bc820..85038f951c08a2e247615fefe07eff3dd6c5b75f 100644 --- a/docs/uniCloud/unipay.md +++ b/docs/uniCloud/unipay.md @@ -64,13 +64,15 @@ const unipay = require('@dcloudio/unipay') | timeout | Number | 否 | 5000 | 请求超时时间,单位:毫秒 | ```js +const path = require('path'); // 引入内置的path模块 + const unipayIns = unipay.initWeixinV3({ appId: 'your appId', mchId: 'your mchId', v3Key: 'you parterner key', - appCertPath: path.resolve('/path/to/you/cert'), + appCertPath: path.resolve(__dirname, 'your appCertPath'), // appCertContent: "", - appPrivateKeyPath: path.resolve('/path/to/you/privateKey'), + appPrivateKeyPath: path.resolve(__dirname, 'your appPrivateKeyPath'), // appPrivateKeyContent: "", }) ```