Version 2.3.2 - marmot-cn/marmot-framework GitHub Wiki

2.4.1


概述

  • 数据库 支持 json格式 数据.
  • 修改 ErrorViewsourcemate 格式.

1. 数据库支持json 格式数据

修改 MyPdo.class.php 文件的 insertupdate 方法, 现支持 json格式 的数据.

2. bug

  • 修改 ErrorView.class.phpsourcemate 格式.

原格式

{
    "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": []
        }
    ]
}