提交 4e07f828 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 141a2ae1
...@@ -20,6 +20,9 @@ export default { ...@@ -20,6 +20,9 @@ export default {
prepayId() { prepayId() {
return this.query.prepay_id return this.query.prepay_id
}, },
nonceStr() {
return this.query.nonce_str
},
redirectURI() { redirectURI() {
return this.query.redirect_uri return this.query.redirect_uri
} }
...@@ -28,7 +31,7 @@ export default { ...@@ -28,7 +31,7 @@ export default {
pay() { pay() {
const options = { const options = {
appId: this.appId, appId: this.appId,
nonceStr: Math.random().toString(36).slice(-8), nonceStr: this.nonceStr,
package: `prepay_id=${this.prepayId}`, package: `prepay_id=${this.prepayId}`,
signType: 'MD5', signType: 'MD5',
timeStamp: parseInt(new Date().getTime() / 1000).toString() timeStamp: parseInt(new Date().getTime() / 1000).toString()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论