|
|
@@ -32,8 +32,11 @@ return json_decode(<<<'JSON'
|
|
|
"info": "商户API证书",
|
|
|
"$required": false,
|
|
|
"props": {
|
|
|
- "action": "/admin/flysystem/file",
|
|
|
+ "action": "{{API_BASE_URL}}/admin/filesystem/file",
|
|
|
"name":"file",
|
|
|
+ "headers": {
|
|
|
+ "Authorization": "Bearer {{API_TOKEN}}"
|
|
|
+ },
|
|
|
"onSuccess": "$FNX:const res = $inject.args[0];\nconsole.log(res);if(res.code!=200 &&res.code!=0){alert(res.msg);return;}\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
|
|
|
"limit": 1
|
|
|
},
|
|
|
@@ -48,8 +51,11 @@ return json_decode(<<<'JSON'
|
|
|
"info": "商户API私钥",
|
|
|
"$required": false,
|
|
|
"props": {
|
|
|
- "action": "/admin/flysystem/file",
|
|
|
+ "action": "{{API_BASE_URL}}/admin/filesystem/file",
|
|
|
"name":"file",
|
|
|
+ "headers": {
|
|
|
+ "Authorization": "Bearer {{API_TOKEN}}"
|
|
|
+ },
|
|
|
"onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
|
|
|
"limit": 1
|
|
|
},
|
|
|
@@ -76,8 +82,11 @@ return json_decode(<<<'JSON'
|
|
|
"info": "微信支付公钥",
|
|
|
"$required": false,
|
|
|
"props": {
|
|
|
- "action": "/admin/flysystem/file",
|
|
|
+ "action": "{{API_BASE_URL}}/admin/filesystem/file",
|
|
|
"name":"file",
|
|
|
+ "headers": {
|
|
|
+ "Authorization": "Bearer {{API_TOKEN}}"
|
|
|
+ },
|
|
|
"onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
|
|
|
"limit": 1
|
|
|
},
|
|
|
@@ -89,8 +98,8 @@ return json_decode(<<<'JSON'
|
|
|
},
|
|
|
{
|
|
|
"type": "input",
|
|
|
- "field": "wechatpay_serial",
|
|
|
- "title": "wechatpay_serial",
|
|
|
+ "field": "public_key_id",
|
|
|
+ "title": "public_key_id",
|
|
|
"info": "微信支付公钥id",
|
|
|
"$required": false,
|
|
|
"_fc_id": "id_F8prmd1e9yx9auc",
|
|
|
@@ -111,7 +120,35 @@ return json_decode(<<<'JSON'
|
|
|
"hidden": false,
|
|
|
"_fc_drag_tag": "input"
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
+ "type": "input",
|
|
|
+ "field": "platform_no",
|
|
|
+ "title": "platform_no",
|
|
|
+ "info": "平台证书序列号",
|
|
|
+ "$required": false,
|
|
|
+ "_fc_id": "id_Floymd1ech8faxc",
|
|
|
+ "name": "ref_Fdp2md1ech8fayc",
|
|
|
+ "display": true,
|
|
|
+ "hidden": false,
|
|
|
+ "_fc_drag_tag": "input"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "upload",
|
|
|
+ "field": "platform_cert",
|
|
|
+ "title": "平台证书",
|
|
|
+ "info": "平台证书",
|
|
|
+ "$required": false,
|
|
|
+ "props": {
|
|
|
+ "action": "{{API_BASE_URL}}/admin/filesystem/file",
|
|
|
+ "name":"file",
|
|
|
+ "headers": {
|
|
|
+ "Authorization": "Bearer {{API_TOKEN}}"
|
|
|
+ },
|
|
|
+ "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
|
|
|
+ "limit": 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
"type": "switch",
|
|
|
"title": "启用沙箱环境",
|
|
|
"field": "sandbox",
|