diff --git a/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java b/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java index 411c94c03..78e8c95ee 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java +++ b/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java @@ -6,7 +6,7 @@ import cn.binarywang.wx.miniapp.bean.WxMaUserInfo; import cn.hutool.core.util.StrUtil; import com.youlai.auth.domain.Oauth2Token; import com.youlai.common.core.constant.AuthConstants; -import com.youlai.common.core.constant.SystemConstants; +import com.youlai.common.core.constant.GlobalConstants; import com.youlai.common.core.result.Result; import com.youlai.common.core.result.ResultCode; import com.youlai.common.web.exception.BizException; @@ -116,7 +116,7 @@ public class AuthController { .setOpenid(openid) .setUsername(openid) .setPassword(passwordEncoder.encode(openid).replace(AuthConstants.BCRYPT, Strings.EMPTY)) // 加密密码移除前缀加密方式 {bcrypt} - .setStatus(SystemConstants.STATUS_NORMAL_VALUE); + .setStatus(GlobalConstants.STATUS_NORMAL_VALUE); Result res = memberFeignService.add(user); if (!ResultCode.SUCCESS.getCode().equals(res.getCode())) { diff --git a/youlai-common/common-core/src/main/java/com/youlai/common/core/constant/SystemConstants.java b/youlai-common/common-core/src/main/java/com/youlai/common/core/constant/GlobalConstants.java similarity index 84% rename from youlai-common/common-core/src/main/java/com/youlai/common/core/constant/SystemConstants.java rename to youlai-common/common-core/src/main/java/com/youlai/common/core/constant/GlobalConstants.java index 36faa27bb..ea07b84fd 100644 --- a/youlai-common/common-core/src/main/java/com/youlai/common/core/constant/SystemConstants.java +++ b/youlai-common/common-core/src/main/java/com/youlai/common/core/constant/GlobalConstants.java @@ -1,6 +1,6 @@ package com.youlai.common.core.constant; -public interface SystemConstants { +public interface GlobalConstants { Integer STATUS_NORMAL_VALUE = 1;