小程序登录同步YMS用户BUG修改1
This commit is contained in:
+4
@@ -1902,6 +1902,10 @@ public class UserApplicationService {
|
||||
log.warn("同步商城用户失败,但不影响用户保存: {}", e.getMessage());
|
||||
}
|
||||
try {
|
||||
// 截断avatar URL(YMS的avatar列长度有限,去掉OSS签名参数)
|
||||
if (userEntity.getAvatar() != null && userEntity.getAvatar().contains("?")) {
|
||||
userEntity.setAvatar(userEntity.getAvatar().substring(0, userEntity.getAvatar().indexOf("?")));
|
||||
}
|
||||
ymsDomainService.addOrEditYmsUser(userEntity);
|
||||
} catch (Exception e) {
|
||||
log.warn("同步YMS平台员工信息失败,但不影响用户保存: {}", e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user