config.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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": "{{API_BASE_URL}}/admin/filesystem/file",
  35. "name":"file",
  36. "headers": {
  37. "Authorization": "Bearer {{API_TOKEN}}"
  38. },
  39. "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;",
  40. "limit": 1
  41. },
  42. "display": true,
  43. "hidden": false,
  44. "_fc_drag_tag": "upload"
  45. },
  46. {
  47. "type": "upload",
  48. "field": "apiclient_key",
  49. "title": "apiclient_key",
  50. "info": "商户API私钥",
  51. "$required": false,
  52. "props": {
  53. "action": "{{API_BASE_URL}}/admin/filesystem/file",
  54. "name":"file",
  55. "headers": {
  56. "Authorization": "Bearer {{API_TOKEN}}"
  57. },
  58. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  59. "limit": 1
  60. },
  61. "display": true,
  62. "hidden": false,
  63. "_fc_drag_tag": "upload"
  64. },
  65. {
  66. "type": "input",
  67. "field": "serial_no",
  68. "title": "serial_no",
  69. "info": "商户API证书序列号",
  70. "$required": false,
  71. "_fc_id": "id_Fho8md1e31edalc",
  72. "name": "ref_F343md1e31edamc",
  73. "display": true,
  74. "hidden": false,
  75. "_fc_drag_tag": "input"
  76. },
  77. {
  78. "type": "upload",
  79. "field": "public_key",
  80. "title": "public_key",
  81. "info": "微信支付公钥",
  82. "$required": false,
  83. "props": {
  84. "action": "{{API_BASE_URL}}/admin/filesystem/file",
  85. "name":"file",
  86. "headers": {
  87. "Authorization": "Bearer {{API_TOKEN}}"
  88. },
  89. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  90. "limit": 1
  91. },
  92. "_fc_id": "id_Finbmd1e8rmmarc",
  93. "name": "ref_Fb4jmd1e8rmmasc",
  94. "display": true,
  95. "hidden": false,
  96. "_fc_drag_tag": "upload"
  97. },
  98. {
  99. "type": "input",
  100. "field": "public_key_id",
  101. "title": "public_key_id",
  102. "info": "微信支付公钥id",
  103. "$required": false,
  104. "_fc_id": "id_F8prmd1e9yx9auc",
  105. "name": "ref_Fmmwmd1e9yx9avc",
  106. "display": true,
  107. "hidden": false,
  108. "_fc_drag_tag": "input"
  109. },
  110. {
  111. "type": "input",
  112. "field": "api_v3_key",
  113. "title": "api_v3_key",
  114. "info": "APIv3密钥",
  115. "$required": false,
  116. "_fc_id": "id_Floymd1ech8faxc",
  117. "name": "ref_Fdp2md1ech8fayc",
  118. "display": true,
  119. "hidden": false,
  120. "_fc_drag_tag": "input"
  121. },
  122. {
  123. "type": "input",
  124. "field": "platform_no",
  125. "title": "platform_no",
  126. "info": "平台证书序列号",
  127. "$required": false,
  128. "_fc_id": "id_Floymd1ech8faxc",
  129. "name": "ref_Fdp2md1ech8fayc",
  130. "display": true,
  131. "hidden": false,
  132. "_fc_drag_tag": "input"
  133. },
  134. {
  135. "type": "upload",
  136. "field": "platform_cert",
  137. "title": "平台证书",
  138. "info": "平台证书",
  139. "$required": false,
  140. "props": {
  141. "action": "{{API_BASE_URL}}/admin/filesystem/file",
  142. "name":"file",
  143. "headers": {
  144. "Authorization": "Bearer {{API_TOKEN}}"
  145. },
  146. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  147. "limit": 1
  148. }
  149. },
  150. {
  151. "type": "switch",
  152. "title": "启用沙箱环境",
  153. "field": "sandbox",
  154. "props": {
  155. "activeText": "是",
  156. "inactiveText": "否"
  157. },
  158. "_fc_id": "id_Fpxtmd1fz7stauc",
  159. "name": "ref_Fihqmd1fz7stavc",
  160. "_fc_drag_tag": "switch",
  161. "display": true,
  162. "hidden": false
  163. },
  164. {
  165. "type": "input",
  166. "title": "支付回调地址",
  167. "field": "notify_url",
  168. "props": {
  169. "placeholder": "请输入支付结果通知回调地址"
  170. },
  171. "$required": true,
  172. "_fc_id": "id_F0j5md1fz7stawc",
  173. "name": "ref_Ffipmd1fz7staxc",
  174. "_fc_drag_tag": "input",
  175. "display": true,
  176. "hidden": false
  177. },
  178. {
  179. "type": "input",
  180. "title": "退款回调地址",
  181. "field": "refund_notify_url",
  182. "props": {
  183. "placeholder": "请输入退款结果通知回调地址"
  184. },
  185. "_fc_id": "id_Fcmkmd1fz7stayc",
  186. "name": "ref_Fct5md1fz7stazc",
  187. "_fc_drag_tag": "input",
  188. "display": true,
  189. "hidden": false
  190. }
  191. ]
  192. JSON, true);