فهرست منبع

小程序接口

chenliqu 2 سال پیش
والد
کامیت
7b8c8f5c20

+ 1 - 6
ruoyi-modules/znyl-resource/src/main/java/com/ruoyi/resource/service/impl/ZnylJhdxServiceImpl.java

@@ -249,16 +249,11 @@ public class ZnylJhdxServiceImpl implements IZnylJhdxService
     @Override
     public List<ZnylJhdx> userLogin(String loginName, String password, Long accountId, String openId){
         List<ZnylJhdx> list = znylJhdxMapper.userLogin(loginName,password,accountId,null);
-        if(list.size()>0){
-            return list;
-        }else{
-            throw new CustomException("账号密码错误,请重新填写。");
-        }
+        return list;
     }
 
     @Override
     public int userRegister(String loginName, String password,Long accountId){
-
 //        List<ZnylJhdx> userListByLoginName = znylJhdxMapper.userInfo(loginName,null,accountId);
 //        if(userListByLoginName.size() > 0){
 //            throw new CustomException("该用户账号已注册,请重新填写");

+ 1 - 5
ruoyi-modules/znyl-resource/src/main/java/com/ruoyi/resource/service/impl/ZnylJhrxxServiceImpl.java

@@ -187,11 +187,7 @@ public class ZnylJhrxxServiceImpl implements IZnylJhrxxService
     @Override
     public List<ZnylJhrxx> userLogin(String loginName, String password, Long accountId, String openId){
         List<ZnylJhrxx> list = znylJhrxxMapper.userLogin(loginName,password,accountId,null);
-        if(list.size()>0){
-            return list;
-        }else{
-            throw new CustomException("账号密码错误,请重新填写。");
-        }
+        return list;
     }
 
     @Override