Commit ffceb8a6730a2733944112260fce2fe5ee4aa293

Authored by zouyang0921
1 parent e1da6691

[年会抽奖]微信sdk打开调试

Showing 1 changed file with 2 additions and 1 deletions
mobile.js
... ... @@ -48,7 +48,7 @@ var action = {
48 48 var WECHAT_JS_SIGN_URL = baseURL + '/api.WechatJsSign.php';
49 49 var sign = function(data) {
50 50 wx.config({
51   - debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  51 + debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
52 52 appId: data.appId, // 必填,公众号的唯一标识
53 53 timestamp: data.timestamp, // 必填,生成签名的时间戳
54 54 nonceStr: data.nonceStr, // 必填,生成签名的随机串
... ... @@ -136,6 +136,7 @@ var action = {
136 136 });
137 137 },
138 138 cancel: function() {
  139 + console.log('cancel chooseImage');
139 140 var userAgent = navigator.userAgent.toLowerCase();
140 141 if (/android/.test(userAgent)) {
141 142 window.location.reload();
... ...