今天一個測試小姐姐測我的接口,發現了一個錯,乍一看還以爲是模型驗證的問題。實際上是她傳參的問題。一個參數少加了一個引號。
{
“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
}