From 0d7c8a5e2d3972fc61e1885ecde9bee51f3597f5 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Mon, 22 Nov 2021 09:55:20 +0800 Subject: [PATCH] * Add array type for params type. --- module/api/js/common.js | 2 +- module/api/lang/zh-cn.php | 1 + module/api/view/edit.html.php | 14 +++----------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/module/api/js/common.js b/module/api/js/common.js index 336de76f00..aeadb561a4 100644 --- a/module/api/js/common.js +++ b/module/api/js/common.js @@ -250,7 +250,7 @@ try { - + diff --git a/module/api/lang/zh-cn.php b/module/api/lang/zh-cn.php index 01d9968a13..d8946ad167 100755 --- a/module/api/lang/zh-cn.php +++ b/module/api/lang/zh-cn.php @@ -176,6 +176,7 @@ $lang->api->paramsScopeOptions = array( /* Api global common params */ $lang->api->paramsTypeOptions = array( 'object' => 'object', + 'array' => 'array', 'string' => 'string', 'date' => 'date', 'datetime' => 'datetime', diff --git a/module/api/view/edit.html.php b/module/api/view/edit.html.php index 0aba1ce526..b49d94fa49 100644 --- a/module/api/view/edit.html.php +++ b/module/api/view/edit.html.php @@ -88,17 +88,11 @@ js::set('api', $api); api->method;?> - - api->methodOptions, $api->method ? $api->method : 'GET', "class='form-control chosen'");?> - + api->methodOptions, $api->method ? $api->method : 'GET', "class='form-control chosen'");?> api->requestType;?> - - api->requestTypeOptions, $api->requestType ? $api->requestType : 'application/json', "class='form-control chosen'");?> - + api->requestTypeOptions, $api->requestType ? $api->requestType : 'application/json', "class='form-control chosen'");?> api->status;?> @@ -168,9 +162,7 @@ js::set('api', $api);
- +