guo00guo 5 năm trước cách đây
mục cha
commit
999f8a2480

+ 3 - 3
site/src/main/java/com/mooctest/crowd/site/mediator/impl/WebMediatorImpl.java

@@ -1184,9 +1184,9 @@ public class WebMediatorImpl implements ViewMediator {
     @Override
     public UserDTO updateInformation(long userId, UserVO userVO) {
         Optional<UserPO> userPO = userDao.findById(userId);
-        if (userVO.getUnit() == null || userVO.getUnit().length() <= 0) {
-            throw new HttpBadRequestException("请输入企业简称");
-        }
+//        if (userVO.getUnit() == null || userVO.getUnit().length() <= 0) {
+//            throw new HttpBadRequestException("请输入企业简称");
+//        }
         userPO.get().setPhotoUrl(userVO.getPhotoUrl());
         userPO.get().setUnit(userVO.getUnit());
         userPO.get().setGender(userVO.getGender());