siteserver / cms

SS CMS 基于 .NET Core,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
https://sscms.com
GNU Affero General Public License v3.0
3.66k stars 1.21k forks source link

6.11.1版本API问题 #1986

Open James0912KK opened 5 years ago

James0912KK commented 5 years ago

在6.11.1版本下,添加内容API,无法添加报错 { "message": "An error has occurred.", "exceptionMessage": "未将对象引用设置到对象的实例。", "exceptionType": "System.NullReferenceException", "stackTrace": " 在 SiteServer.CMS.Core.AuthenticatedRequest.get_PostData()\r\n 在 SiteServer.CMS.Core.AuthenticatedRequest.GetPostObject(String name)\r\n 在 SiteServer.CMS.Core.AuthenticatedRequest.GetPostInt(String name, Int32 defaultValue)\r\n 在 SiteServer.API.Controllers.V1.V1ContentsController.Create(Int32 siteId, Int32 channelId)" }

starlying commented 5 years ago

能把详细的提交参数发出来吗,看看是不是提交参数的问题

James0912KK commented 5 years ago

image 这么提交参数的,应该没有问题,Title必填;

James0912KK commented 5 years ago

没有理吗?

James0912KK commented 4 years ago

能把详细的提交参数发出来吗,看看是不是提交参数的问题

image 这么提交参数的,没有问题啊,标题必填;