提交 243e05c4 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 326c1862
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
pay() { pay() {
const options = { const options = {
appId: this.appId, appId: this.appId,
timeStamp: Date.now(), timeStamp: new Date().getTime(),
nonceStr: Math.random().toString(36).slice(-8), nonceStr: Math.random().toString(36).slice(-8),
package: `prepay_id=${this.prepayId}`, package: `prepay_id=${this.prepayId}`,
signType: 'MD5' signType: 'MD5'
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
if (res.err_msg === 'get_brand_wcpay_request:ok') { if (res.err_msg === 'get_brand_wcpay_request:ok') {
window.location.href = this.redirectURI window.location.href = this.redirectURI
} else { } else {
window.alert(res.errMsg) window.alert(res.err_msg)
window.location.href = this.redirectURI window.location.href = this.redirectURI
} }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论