v 3.0.0 GA ReleaseNotes &StringUtils

This commit is contained in:
Crystal.Sea
2021-09-27 09:42:30 +08:00
parent d1cf180412
commit 254ab67b18
6 changed files with 25 additions and 56 deletions

View File

@@ -182,7 +182,7 @@ public class RegistrationController {
@RequestMapping(value={"/registeron"})
@ResponseBody
public Message registeron(UserInfo userInfo,@RequestParam String emailMobile) throws ServletException, IOException {
if(StringUtils.isNullOrBlank(emailMobile)) {
if(StringUtils.isEmpty(emailMobile)) {
return new Message(WebContext.getI18nValue("register.emailMobile.error"),"1");
}
if(StringUtils.isValidEmail(emailMobile)) {

View File

@@ -135,7 +135,7 @@ public class SafeController {
_logger.debug("App Login Password : "+userInfo.getAppLoginPassword());
_logger.debug("App Login new Password : "+ReciprocalUtils.encode(newPassword));
if(newPassword.equals(confirmPassword)){
if(StringUtils.isNullOrBlank(userInfo.getAppLoginPassword())||userInfo.getAppLoginPassword().equals(ReciprocalUtils.encode(oldPassword))){
if(StringUtils.isEmpty(userInfo.getAppLoginPassword())||userInfo.getAppLoginPassword().equals(ReciprocalUtils.encode(oldPassword))){
userInfo.setAppLoginPassword(ReciprocalUtils.encode(newPassword));
boolean change= userInfoService.changeAppLoginPassword(userInfo);
_logger.debug(""+change);

View File

@@ -50,7 +50,7 @@ public class SingleSignOnFilter implements Filter {
// 浠巗ession涓幏鍙栧瓨鏀剧殑appid
String appId = (String) session.getAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID);
// 鑾峰彇鏈<E5BD87>鍚庝竴涓<E7ABB4>"/"鐨勬暟鎹綔涓篴ppid锛屼繚瀛樺湪session涓<6E>
if (StringUtils.isNullOrBlank(appId)) {
if (StringUtils.isEmpty(appId)) {
String uir = httpServletRequest.getRequestURI();
session.setAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID,
uir.substring(uir.lastIndexOf("/") + 1));

View File

@@ -292,7 +292,7 @@ public class UserInfoController {
binder.registerCustomEditor(String.class, new PropertyEditorSupport() {
@Override
public void setAsText(String value) {
if(StringUtils.isNullOrBlank(value)){
if(StringUtils.isEmpty(value)){
setValue(null);
}else{
setValue(value);