Commit f13ccfa4 authored by 郝聪敏's avatar 郝聪敏

fix: 去掉wx debug

parent 1b321f9d
...@@ -27,7 +27,7 @@ export async function setShare({ ...@@ -27,7 +27,7 @@ export async function setShare({
}); });
const { appId, timestamp, nonceStr, signature } = res; const { appId, timestamp, nonceStr, signature } = res;
wx.config({ wx.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId, // 必填,公众号的唯一标识,填自己的! appId, // 必填,公众号的唯一标识,填自己的!
timestamp, // 必填,生成签名的时间戳,刚才接口拿到的数据 timestamp, // 必填,生成签名的时间戳,刚才接口拿到的数据
nonceStr, // 必填,生成签名的随机串 nonceStr, // 必填,生成签名的随机串
...@@ -72,7 +72,7 @@ export function checkOpenId() { ...@@ -72,7 +72,7 @@ export function checkOpenId() {
const openId = localStorage.get("openId"); const openId = localStorage.get("openId");
const _param = parseSearch(window.location.href); const _param = parseSearch(window.location.href);
const local = window.location.href; const local = window.location.href;
console.log(!openId, isWeixinBrower, !_param.code, window.location.href); // console.log(!openId, isWeixinBrower, !_param.code, window.location.href);
if (!openId && isWeixinBrower && !_param.code) { if (!openId && isWeixinBrower && !_param.code) {
var nextPage = document.createElement("a"); var nextPage = document.createElement("a");
nextPage.setAttribute( nextPage.setAttribute(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment