今天一个测试小姐姐测我的接口,发现了一个错,乍一看还以为是模型验证的问题。实际上是她传参的问题。一个参数少加了一个引号。
{
“Message”: “‘0x0A’ is invalid within a JSON string. The string should be correctly escaped. Path: $.EnterpriseSerial | LineNumber: 1 | BytePositionInLine: 40.”,
“Code”: 10001
}
今天一个测试小姐姐测我的接口,发现了一个错,乍一看还以为是模型验证的问题。实际上是她传参的问题。一个参数少加了一个引号。
{
“Message”: “‘0x0A’ is invalid within a JSON string. The string should be correctly escaped. Path: $.EnterpriseSerial | LineNumber: 1 | BytePositionInLine: 40.”,
“Code”: 10001
}