Version 2.3.2 - marmot-cn/marmot-framework GitHub Wiki
2.4.1
概述
- 数据库 支持 json格式 数据.
- 修改 ErrorView 中
source
和mate
格式.
json
格式数据
1. 数据库支持修改 MyPdo.class.php
文件的 insert
和 update
方法, 现支持 json格式 的数据.
2. bug
- 修改
ErrorView.class.php
中source
和mate
格式.
原格式
{
"errors": [
{
"id": "10",
"links": {
"about": ""
},
"status": "404",
"code": "RESOURCE_NOT_EXIST",
"title": "Resource not exist",
"detail": "Server can not find resource",
"source": {
"source": []
},
"meta": {
"meta": []
}
}
]
}
现格式
{
"errors": [
{
"id": "10",
"links": {
"about": ""
},
"status": "404",
"code": "RESOURCE_NOT_EXIST",
"title": "Resource not exist",
"detail": "Server can not find resource",
"source": [],
"meta": []
}
]
}