微信环境切换

This commit is contained in:
txz 2016-04-08 21:46:41 +08:00
parent 281fcf315f
commit 02a5e7752d
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
var app = angular.module('wechat', ['ngRoute','ngCookies']);
var apiUrl = 'http://wechat.trustie.net/api/v1/';
var debug = true; //调试标志,如果在本地请置为true
var debug = false; //调试标志,如果在本地请置为true
if(debug===true){
apiUrl = 'http://localhost:3000/api/v1/';
@ -10,7 +10,7 @@ app.factory('auth', function($http,$routeParams, $cookies, $q){
var _openid = '';
if(debug===true){
_openid = "6";
_openid = "2";
}
var getOpenId = function() {