Mike hace 7 años
padre
commit
fe607c4768
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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) {
                         
                     });