增加 shop 永不过期API

This commit is contained in:
chfei committed 2026-09-28 17:06:23 +08:00
1 parent 90dacd88a3
commit 766afa2fb8
11 files changed
+2155 -2135

No files matched your search

+17 -1
View File
@@ -14,7 +14,7 @@ namespace Store.Framework.Commons
/// </summary>
public override List<Assembly> GetAssemblies()
{
LoadAssemblies(HttpRuntime.BinDirectory);
LoadAssemblies(BinDirectory);
return GetAssembliesFromCurrentAppDomain();
}
@@ -22,5 +22,21 @@ namespace Store.Framework.Commons
{
return ["Max", "Store"];
}
public string BinDirectory
{
get
{
// 传统 ASP.NET Web 环境(IIS 或 VS 调试的 Web 应用)
if (HttpRuntime.AppDomainAppVirtualPath != null)
{
return HttpRuntime.BinDirectory;
}
// 测试环境或非 Web 环境:返回当前程序集所在目录
return AppDomain.CurrentDomain.BaseDirectory;
}
}
}
}