fix: 修复接口状态无法更新问题

This commit is contained in:
gaoxiaolin.gao 2017-12-21 11:56:03 +08:00
parent a4a468068a
commit 120159a381
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,12 @@
### v1.3.1
#### Bug Fixed
1. 修复接口状态无法更新问题
### v1.3.0
#### Feature

View File

@ -26,6 +26,7 @@ class interfaceController extends baseController {
const addAndUpCommonField = {
'desc': 'string',
'status': 'string',
req_query: [{
name: 'string',
value: 'string',
@ -344,6 +345,7 @@ class interfaceController extends baseController {
async up(ctx) {
let params = ctx.params;
console.log('params', params.status);
if (!_.isUndefined(params.method)) {
params.method = params.method || 'GET';