Bladeren bron

fix: APP登录、注册、添加就诊人验证短信验证码拆成一个单独的接口

matianxiang 3 maanden geleden
bovenliggende
commit
1189660d5c

+ 2 - 2
eitc-common/src/main/java/com/eitc/common/handler/MyMetaObjectHandler.java

@@ -81,9 +81,9 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
81 81
         String username = "";
82 82
         try {
83 83
             try {
84
-                username = SecurityUtils.getUsername();
84
+                username = SecurityUtils.getLoginUser().getUser().getNickName();
85 85
             } catch (ServiceException e) {
86
-                log.error("获取用户失败{}", e.getMessage());
86
+                log.error("获取PC用户失败{}", e.getMessage());
87 87
                 username = JWTUtil.getAppPhoneNumber();
88 88
             }
89 89
         } catch (Exception e) {

+ 1 - 1
eitc-patient-pc/src/main/java/com/eitc/patient/controller/NoticeManageController.java

@@ -89,7 +89,7 @@ public class NoticeManageController extends BaseController {
89 89
         if (Objects.equals(noticeManage.getPublishStatus(), NoticeManagePublishStatusEnum.PUBLISH.getCode())) {
90 90
             return AjaxResult.error("请先撤回");
91 91
         }
92
-        noticeManage.setDisplayStatus(noticeManageService.checkDisplayStatus(noticeManage));
92
+        entry.setDisplayStatus(noticeManageService.checkDisplayStatus(entry));
93 93
         return toAjax(noticeManageService.updateById(entry));
94 94
     }
95 95