fix
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 4m27s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 4m27s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -29,6 +29,11 @@ public static class ServiceCollectionExtensions
|
||||
{
|
||||
services.AddScoped(interfaceType, implementationType);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 如果没有接口,直接注册实现类
|
||||
services.AddScoped(implementationType);
|
||||
}
|
||||
}
|
||||
|
||||
return services;
|
||||
|
||||
Reference in New Issue
Block a user