Showing
1 changed file
with
5 additions
and
2 deletions
@@ -71,8 +71,6 @@ exports.callLogin = function(user, password, res) { | @@ -71,8 +71,6 @@ exports.callLogin = function(user, password, res) { | ||
71 | if (data && data.length > 0) { | 71 | if (data && data.length > 0) { |
72 | userInfo.auth.shopName = data[0].name; | 72 | userInfo.auth.shopName = data[0].name; |
73 | userInfo.auth.shopId = data[0].id; | 73 | userInfo.auth.shopId = data[0].id; |
74 | - } | ||
75 | - | ||
76 | //设置店铺列表 | 74 | //设置店铺列表 |
77 | userInfo.shopList = data; | 75 | userInfo.shopList = data; |
78 | 76 | ||
@@ -80,6 +78,11 @@ exports.callLogin = function(user, password, res) { | @@ -80,6 +78,11 @@ exports.callLogin = function(user, password, res) { | ||
80 | code: 20003, | 78 | code: 20003, |
81 | data: userInfo | 79 | data: userInfo |
82 | }); | 80 | }); |
81 | + }else{ | ||
82 | + res.json(errorMessage); | ||
83 | + } | ||
84 | + | ||
85 | + | ||
83 | }); | 86 | }); |
84 | } | 87 | } |
85 | }); | 88 | }); |
-
Please register or login to post a comment