|
@@ -1,4 +1,8 @@
|
|
<?php
|
|
<?php
|
|
|
|
+$platform_id = Dever::input('set')['platform_id'] ?? 0;
|
|
|
|
+if (!$platform_id) {
|
|
|
|
+ $platform_id = Dever::input('field')['platform_id'] ?? 0;
|
|
|
|
+}
|
|
$platform = include('platform_info.php');
|
|
$platform = include('platform_info.php');
|
|
$config = [
|
|
$config = [
|
|
'list' => [
|
|
'list' => [
|
|
@@ -18,12 +22,12 @@ $config = [
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'data_button' => [
|
|
'data_button' => [
|
|
- '设置' => ['edit'],
|
|
|
|
|
|
+ '设置' => ['edit', ['platform_id' => $platform_id]],
|
|
//'删除' => 'delete',
|
|
//'删除' => 'delete',
|
|
'复制' => ['api', 'api/manage.copyApi'],
|
|
'复制' => ['api', 'api/manage.copyApi'],
|
|
],
|
|
],
|
|
'button' => [
|
|
'button' => [
|
|
- '新增' => ['fastadd', ['field' => 'name,env,platform_id,uri']],
|
|
|
|
|
|
+ '新增' => ['fastadd', ['platform_id' => $platform_id, 'field' => 'name,env,platform_id,uri']],
|
|
],
|
|
],
|
|
'search' => [
|
|
'search' => [
|
|
'name',
|
|
'name',
|
|
@@ -38,7 +42,7 @@ $config = [
|
|
'基本设置' => 'name,env,api/api_setting',
|
|
'基本设置' => 'name,env,api/api_setting',
|
|
'请求地址' => 'uri,method,post_method,api/api_path,api/api_query',
|
|
'请求地址' => 'uri,method,post_method,api/api_path,api/api_query',
|
|
'请求参数' => 'api/api_request_header,api/api_request_body',
|
|
'请求参数' => 'api/api_request_header,api/api_request_body',
|
|
- '响应参数' => 'api/api_response_header,api/api_response_body',
|
|
|
|
|
|
+ '响应参数' => 'response_type,api/api_response_header,api/api_response_body',
|
|
|
|
|
|
'存储设置' => 'api/api_save',
|
|
'存储设置' => 'api/api_save',
|
|
'回调设置' => 'notify,api/api_notify,api/api_notify_body,api/api_notify_code',
|
|
'回调设置' => 'notify,api/api_notify,api/api_notify_body,api/api_notify_code',
|
|
@@ -86,6 +90,8 @@ $config = [
|
|
'where' => ['api_id' => 'id'],
|
|
'where' => ['api_id' => 'id'],
|
|
],
|
|
],
|
|
|
|
|
|
|
|
+ 'response_type' => 'radio',
|
|
|
|
+
|
|
'api/api_response_body' => [
|
|
'api/api_response_body' => [
|
|
'name' => '响应体',
|
|
'name' => '响应体',
|
|
'desc' => '填写后,平台中的标准响应体将失效,并且只保留填写后的响应体,格式:data[].name,不是列表则为data.name',
|
|
'desc' => '填写后,平台中的标准响应体将失效,并且只保留填写后的响应体,格式:data[].name,不是列表则为data.name',
|