api_notify.php 842 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. $platform_id = Dever::input('set')['platform_id'] ?? 0;
  3. if (!$platform_id) {
  4. $platform_id = Dever::input('field')['platform_id'] ?? 0;
  5. }
  6. return [
  7. 'update' => [
  8. 'field' => [
  9. 'sign_id' => [
  10. 'type' => 'select',
  11. 'option' => 'Dever::call("api/util.getPlatformSign", '.$platform_id.')',
  12. 'clearable' => true,
  13. 'default' => '',
  14. ],
  15. 'sign_arg' => [
  16. 'type' => 'textarea',
  17. 'autosize' => ['minRows' => 2],
  18. ],
  19. 'success' => [
  20. 'type' => 'textarea',
  21. 'autosize' => ['minRows' => 2],
  22. ],
  23. 'error' => [
  24. 'type' => 'textarea',
  25. 'autosize' => ['minRows' => 2],
  26. ],
  27. ],
  28. ],
  29. ];