|
@@ -111,6 +111,10 @@
|
|
$http.defaults.headers.common["Authorization"] = 'Bearer ' + result.data.data.token;
|
|
$http.defaults.headers.common["Authorization"] = 'Bearer ' + result.data.data.token;
|
|
$scope.user=storage.getObject('user');
|
|
$scope.user=storage.getObject('user');
|
|
$state.go('app.home');
|
|
$state.go('app.home');
|
|
|
|
+ if(localStorage['jpush']){
|
|
|
|
+ console.log("jpush: " + localStorage['jpush']);
|
|
|
|
+ userService.jpush({ jpush: localStorage['jpush']}).then(function (result) {}, function (error) {});
|
|
|
|
+ }
|
|
}, function (error) {
|
|
}, function (error) {
|
|
|
|
|
|
});
|
|
});
|