api_notify.php 994 B

123456789101112131415161718192021222324252627282930313233343536
  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 array
  7. (
  8. 'update' => array
  9. (
  10. 'field' => array
  11. (
  12. 'sign_id' => array
  13. (
  14. 'type' => 'select',
  15. 'option' => 'Dever::call("api/util.getPlatformSign", '.$platform_id.')',
  16. 'clearable' => true,
  17. 'default' => '',
  18. ),
  19. 'sign_arg' => array
  20. (
  21. 'type' => 'textarea',
  22. 'autosize' => array('minRows' => 2),
  23. ),
  24. 'success' => array
  25. (
  26. 'type' => 'textarea',
  27. 'autosize' => array('minRows' => 2),
  28. ),
  29. 'error' => array
  30. (
  31. 'type' => 'textarea',
  32. 'autosize' => array('minRows' => 2),
  33. ),
  34. ),
  35. ),
  36. );