Forráskód Böngészése

跳转小程序32

zhangyujun 3 éve
szülő
commit
479f75e1c6
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/views/mini/index.vue

+ 2 - 2
src/views/mini/index.vue

@@ -38,8 +38,8 @@ export default defineComponent({
 					debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印
 					appId:res.data.data.appId as string, // 必填,公众号的唯一标识
 					timestamp: timestamp, // 必填,生成签名的时间戳
-					nonceStr: nonceStr+'S', // 必填,生成签名的随机串
-					signature: wxSign.calcSignature(res.data.data.ticket,nonceStr+'S',timestamp,window.location.href), // 必填,签名
+					nonceStr: nonceStr, // 必填,生成签名的随机串
+					signature: wxSign.calcSignature(res.data.data.ticket,nonceStr,timestamp,window.location.href), // 必填,签名
 					jsApiList: ["previewImage"], // 必填,需要使用的JS接口列表
 					openTagList: ["wx-open-launch-weapp"], // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
 				});