Authored by weiqingting

权限退出

@@ -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 });