Explorar el Código

优化物业APP登录功能

wuxw hace 6 años
padre
commit
fe95d216c4

+ 2 - 2
AppFrontService/src/main/java/com/java110/app/smo/propertyLogin/impl/wxLogin/impl/PropertyAppLoginSMOImpl.java

@@ -47,7 +47,7 @@ public class PropertyAppLoginSMOImpl extends AppAbstractComponentSMO implements
 
         //super.validatePageInfo(pd);
 
-        Assert.hasKeyAndValue(paramIn, "name", "请求报文中未包含用户名");
+        Assert.hasKeyAndValue(paramIn, "username", "请求报文中未包含用户名");
         Assert.hasKeyAndValue(paramIn, "password", "请求报文中未包含密码");
         //super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.LIST_ORG);
     }
@@ -60,7 +60,7 @@ public class PropertyAppLoginSMOImpl extends AppAbstractComponentSMO implements
 
         JSONObject loginInfo = JSONObject.parseObject(pd.getReqData());
 
-        loginInfo.put("passwd", AuthenticationFactory.passwdMd5(loginInfo.getString("passwd")));
+        loginInfo.put("passwd", AuthenticationFactory.passwdMd5(loginInfo.getString("password")));
         responseEntity = this.callCenterService(restTemplate,pd,loginInfo.toJSONString(), "http://api.java110.com:8008/api/user.service.login",HttpMethod.POST);
         if(responseEntity.getStatusCode() != HttpStatus.OK){
             return responseEntity;