Browse Source

Merge remote-tracking branch 'origin/hotfixes_v5.0.2_20240311_updates' into dev_v5.0.3

deason 1 year ago
parent
commit
69cc4af98f

+ 2 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/provider/UserCloudServiceProvider.java

@@ -106,6 +106,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
         userEntity.setLoginName(loginName);
         userEntity.setRootOrgId(rootOrgId);
         userEntity.setName(name);
+        userEntity.setPhoneNumber(req.getPhoneNumber());
         if (StringUtils.isBlank(req.getPassword())) {
             userEntity.setPassword(ByteUtil.toHexAscii(SHA256.encode(userEntity.getLoginName() + BasicConsts.DEFAULT_PASSWORD)));
         } else {
@@ -328,6 +329,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
             userBean.setDisplayName(userEntity.getLoginName() + " (" + userEntity.getName() + ")");
             userBean.setOrgId(userEntity.getOrgId());
             userBean.setRootOrgId(userEntity.getRootOrgId());
+            userBean.setPhoneNumber(userEntity.getPhoneNumber());
 
             if (!userBean.getRootOrgId().equals(rootOrgId)) {
                 throw new StatusException("008003", "params error");