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