Mike 7 years ago
parent
commit
fe607c4768
1 changed files with 4 additions and 0 deletions
  1. 4 0
      miaomiao/www/js/controllers/account.js

+ 4 - 0
miaomiao/www/js/controllers/account.js

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