res = "{\"msg\":\"ok\",\"code\":200,\"data\":{\"url\":\"" + img + "\"}}"; return new HttpResponseMessage { Content = new StringContent(res, System.Text.Encoding.UTF8, "application/json") };
注意 必须用 HttpResponseMessage 类型是 JSON 否者还是带反斜杠输出
Powered by: 博客园 Copyright © 2024 一佳一 Powered by .NET 9.0 on Kubernetes