去除调试模式

weixin_guange
guange 9 years ago
parent 56d6f4b9bc
commit 6f2b84570f

@ -26,7 +26,7 @@
//参考文档
//https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115&token=&lang=zh_CN
wx.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。
appId: '<%= @appid %>', // 必填,公众号的唯一标识
timestamp: <%= @sign_params[:timestamp] %>, // 必填,生成签名的时间戳
nonceStr: '<%= @sign_params[:noncestr] %>', // 必填,生成签名的随机串

@ -9,8 +9,8 @@ app.controller('InviteCodeController', ['$scope','$http', '$routeParams','config
wx.ready(function(){
wx.onMenuShareTimeline({
title: '定制的标题', // 分享标题
link: 'http://www.baidu.com', // 分享链接
imgUrl: 'https://rescdn.qqmail.com/zh_CN/htmledition/images/webp/spacer1e9c5d.gif', // 分享图标
link: 'http://wechat.trustie.net/', // 分享链接
imgUrl: 'http://wechat.trustie.net/images/logo2.png', // 分享图标
success: function () {
console.log("share successed.");
},

@ -39,8 +39,7 @@ app.controller('LoginController', ['$scope', '$http', '$location', '$routeParams
vm.loginFailed = (response.data.status != 0);
if (!$scope.loginFailed) { //绑定成功
vm.alertService.showMessage('提示', response.data.message, function(){
// $location.path("/activities");
window.WeixinJSBridge.call('closeWindow');
wx.closeWindow();
});
} else {
vm.alertService.showMessage('出错了', response.data.message);

Loading…
Cancel
Save