From 511fbc6392d46828284bd72b47966ef217893275 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Wed, 17 Mar 2021 17:37:44 +0800
Subject: [PATCH] 登陆修改

---
 screen-api/src/main/java/com/moral/api/controller/UserController.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/screen-api/src/main/java/com/moral/api/controller/UserController.java b/screen-api/src/main/java/com/moral/api/controller/UserController.java
index 1f3f6a8..12b071a 100644
--- a/screen-api/src/main/java/com/moral/api/controller/UserController.java
+++ b/screen-api/src/main/java/com/moral/api/controller/UserController.java
@@ -17,6 +17,7 @@
 
 import com.moral.api.entity.User;
 import com.moral.api.service.UserService;
+import com.moral.constant.ResponseCodeEnum;
 import com.moral.constant.ResultMessage;
 import com.moral.util.WebUtils;
 
@@ -43,10 +44,12 @@
     public ResultMessage addUser(User user, HttpServletRequest request) {
         Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null);
         if (!(parameters.containsKey("account") && parameters.containsKey("password"))) {
-            return ResultMessage.fail("���������������������������������");
+            return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg());
         }
         String token = request.getHeader("token");
         Map<String, Object> map = userService.addUser(user, token);
+
+
         if (map.containsKey("msg")) {
             return ResultMessage.fail(map.get("msg").toString());
         }

--
Gitblit v1.8.0