config.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. declare(strict_types=1);
  3. return json_decode(<<<'JSON'
  4. [
  5. {
  6. "type": "input",
  7. "field": "mchid",
  8. "title": "mchid",
  9. "info": "商户号",
  10. "$required": true,
  11. "_fc_id": "id_Fxo2md1dy5fjacc",
  12. "name": "ref_Favmmd1dy5fjadc",
  13. "display": true,
  14. "hidden": false,
  15. "_fc_drag_tag": "input"
  16. },
  17. {
  18. "type": "input",
  19. "field": "appid",
  20. "title": "appid",
  21. "info": "开发者ID",
  22. "$required": false,
  23. "display": true,
  24. "hidden": false,
  25. "_fc_drag_tag": "input"
  26. },
  27. {
  28. "type": "upload",
  29. "field": "apiclient_cert",
  30. "title": "apiclient_cert",
  31. "info": "商户API证书",
  32. "$required": false,
  33. "props": {
  34. "action": "/admin/flysystem/file",
  35. "name":"file",
  36. "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;",
  37. "limit": 1
  38. },
  39. "display": true,
  40. "hidden": false,
  41. "_fc_drag_tag": "upload"
  42. },
  43. {
  44. "type": "upload",
  45. "field": "apiclient_key",
  46. "title": "apiclient_key",
  47. "info": "商户API私钥",
  48. "$required": false,
  49. "props": {
  50. "action": "/admin/flysystem/file",
  51. "name":"file",
  52. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  53. "limit": 1
  54. },
  55. "display": true,
  56. "hidden": false,
  57. "_fc_drag_tag": "upload"
  58. },
  59. {
  60. "type": "input",
  61. "field": "serial_no",
  62. "title": "serial_no",
  63. "info": "商户API证书序列号",
  64. "$required": false,
  65. "_fc_id": "id_Fho8md1e31edalc",
  66. "name": "ref_F343md1e31edamc",
  67. "display": true,
  68. "hidden": false,
  69. "_fc_drag_tag": "input"
  70. },
  71. {
  72. "type": "upload",
  73. "field": "public_key",
  74. "title": "public_key",
  75. "info": "微信支付公钥",
  76. "$required": false,
  77. "props": {
  78. "action": "/admin/flysystem/file",
  79. "name":"file",
  80. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  81. "limit": 1
  82. },
  83. "_fc_id": "id_Finbmd1e8rmmarc",
  84. "name": "ref_Fb4jmd1e8rmmasc",
  85. "display": true,
  86. "hidden": false,
  87. "_fc_drag_tag": "upload"
  88. },
  89. {
  90. "type": "input",
  91. "field": "wechatpay_serial",
  92. "title": "wechatpay_serial",
  93. "info": "微信支付公钥id",
  94. "$required": false,
  95. "_fc_id": "id_F8prmd1e9yx9auc",
  96. "name": "ref_Fmmwmd1e9yx9avc",
  97. "display": true,
  98. "hidden": false,
  99. "_fc_drag_tag": "input"
  100. },
  101. {
  102. "type": "input",
  103. "field": "api_v3_key",
  104. "title": "api_v3_key",
  105. "info": "APIv3密钥",
  106. "$required": false,
  107. "_fc_id": "id_Floymd1ech8faxc",
  108. "name": "ref_Fdp2md1ech8fayc",
  109. "display": true,
  110. "hidden": false,
  111. "_fc_drag_tag": "input"
  112. },
  113. {
  114. "type": "switch",
  115. "title": "启用沙箱环境",
  116. "field": "sandbox",
  117. "props": {
  118. "activeText": "是",
  119. "inactiveText": "否"
  120. },
  121. "_fc_id": "id_Fpxtmd1fz7stauc",
  122. "name": "ref_Fihqmd1fz7stavc",
  123. "_fc_drag_tag": "switch",
  124. "display": true,
  125. "hidden": false
  126. },
  127. {
  128. "type": "input",
  129. "title": "支付回调地址",
  130. "field": "notify_url",
  131. "props": {
  132. "placeholder": "请输入支付结果通知回调地址"
  133. },
  134. "$required": true,
  135. "_fc_id": "id_F0j5md1fz7stawc",
  136. "name": "ref_Ffipmd1fz7staxc",
  137. "_fc_drag_tag": "input",
  138. "display": true,
  139. "hidden": false
  140. },
  141. {
  142. "type": "input",
  143. "title": "退款回调地址",
  144. "field": "refund_notify_url",
  145. "props": {
  146. "placeholder": "请输入退款结果通知回调地址"
  147. },
  148. "_fc_id": "id_Fcmkmd1fz7stayc",
  149. "name": "ref_Fct5md1fz7stazc",
  150. "_fc_drag_tag": "input",
  151. "display": true,
  152. "hidden": false
  153. }
  154. ]
  155. JSON, true);