hi
Can you share the steps or project that I can reproduce this exception?
liming.ma@volosoft.com
Thanks.
hi
Can you share two simple projects to reproduce the 401 error?
liming.ma@volosoft.com
Thanks.
hi
All projects should get a token from the Auth Server.
And the token will be validated by Auth Server website.
Will all your projects use the same identity users database?
Thanks.
我已经在framework中优化了这个方法
参考: https://github.com/abpframework/abp/pull/23622
如果用户和角色太多, 这样会造成更卡顿的情况
hi
Adding [RemoteService(false)] to all ClientProx classes will fix the problem.
This is because your app service is different from the standard one.
The client proxy assumes that each interface corresponds to a single implementation, but your interface has a generic base class.
public interface IWorkOrderAttachmentTypeAppService : IAttachmentTypeAppService<AttachmentTypeDto>
Thanks
I will check it asap.
Thanks.
好的, 我会在模块中修复它
你可以在app模版中尝试复现问题, 然后我们可以排除出问题.
var permissions = (await PermissionDefinitionManager.GetPermissionsAsync())
.Where(x => notCacheKeys.Any(k => GetPermissionNameFormCacheKeyOrNull(k) == x.Name)).ToList();
改为
var names = notCacheKeys.Select(k => GetPermissionNameFormCacheKeyOrNull(k)).ToArray();
var permissions = (await PermissionDefinitionManager.GetPermissionsAsync())
.Where(x => names .Any(k => k == x.Name)).ToList();
速度从6秒到几秒?