9376cbad by ex

获取code 重新登录

1 parent 9e43930c
...@@ -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});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!