diff --git a/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs b/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs index e861515..ba9d3a4 100644 --- a/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs +++ b/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs @@ -47,7 +47,7 @@ public class EncryptResponseAttribute : TypeFilterAttribute { Content = encryptedText, ContentType = "text/plain", - StatusCode = 200 + StatusCode = objectResult.StatusCode ?? 200 }; } }