|
@@ -20,7 +20,7 @@ var wxJssdkMixin = function () {
|
|
|
// const signature = sha1(`jsapi_ticket=${data.ticket}&noncestr=${nonceStr}×tamp=${timestamp}&url=${url}`).toString()
|
|
|
// console.log(nonceStr, timestamp, signature, data.ticket)
|
|
|
if (this.isWeChat()) {
|
|
|
- await wx.config({
|
|
|
+ wx.config({
|
|
|
debug: true, // dev === 'development' 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。
|
|
|
appId: 'wx91c4152b60ca91a3', // 必填,公众号的唯一标识
|
|
|
timestamp: data.timestamp, // 必填,生成签名的时间戳
|