This commit is contained in:
dzc committed 2026-07-31 20:55:13 +08:00
1 parent 7d1e9a01f8
commit e4575a0c1a
1 file changed
+1 -1
@@ -115,7 +115,7 @@ public class WalletManageServiceImpl extends ServiceImpl<WalletManageMapper, Wal
log.info("|{}|创建用户电子钱包失败,userId:{},用户id不存在", TAG, userId);
return;
}
String role = Arrays.stream(user.getRoleCodes()).filter(v -> ObjectUtil.equals(v, autoWalletRoleCode)).findFirst().get();
String role = Arrays.stream(user.getRoleCodes()).filter(v -> ObjectUtil.equals(v, autoWalletRoleCode)).findFirst().orElse(null);
if (ObjectUtil.isEmpty(role)) {
log.info("|{}|创建用户电子钱包失败,userId:{},没有{}权限", TAG, userId, "WALLET_AUTO_CREATE");
return;