获取code 重新登录
Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -17,6 +17,7 @@ angular.module('myApp') | ... | @@ -17,6 +17,7 @@ angular.module('myApp') |
| 17 | if(code){ | 17 | if(code){ |
| 18 | dingdaService.verifyThirdCode(code).success(function (res) { | 18 | dingdaService.verifyThirdCode(code).success(function (res) { |
| 19 | if(res.mate.code == 200) { | 19 | if(res.mate.code == 200) { |
| 20 | dingdaService.verifyPhoneCode(res.data.mobile, res.data.code).success(function (data) { | ||
| 20 | if (data.meta.code == 200) { | 21 | if (data.meta.code == 200) { |
| 21 | data.data.userName = $scope.phoneNumberVal; | 22 | data.data.userName = $scope.phoneNumberVal; |
| 22 | globalService.saveData('user',data.data); | 23 | globalService.saveData('user',data.data); |
| ... | @@ -36,9 +37,7 @@ angular.module('myApp') | ... | @@ -36,9 +37,7 @@ angular.module('myApp') |
| 36 | // layer.msg(data.data.error); | 37 | // layer.msg(data.data.error); |
| 37 | return; | 38 | return; |
| 38 | } | 39 | } |
| 39 | // dingdaService.verifyPhoneCode(res.data.mobile, res.data.code).success(function (data) { | 40 | }) |
| 40 | // | ||
| 41 | // }) | ||
| 42 | } | 41 | } |
| 43 | if(res.mate.code == 500){ | 42 | if(res.mate.code == 500){ |
| 44 | $state.go('login', {}, {reload: true}); | 43 | $state.go('login', {}, {reload: true}); | ... | ... |
-
Please register or sign in to post a comment