platform_request_body.php 883 B

12345678910111213141516171819202122232425262728293031323334
  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. if (!$platform_id) {
  7. $platform_id = Dever::input('id');
  8. }
  9. return array
  10. (
  11. 'update' => array
  12. (
  13. 'field' => array
  14. (
  15. 'key' => array
  16. (
  17. 'type' => 'textarea',
  18. 'autosize' => array('minRows' => 2),
  19. ),
  20. 'value' => array
  21. (
  22. 'type' => 'textarea',
  23. 'autosize' => array('minRows' => 2),
  24. ),
  25. 'type' => array
  26. (
  27. 'type' => 'cascader',
  28. 'option' => 'Dever::call("api/util.fieldType", '.$platform_id.')',
  29. 'clearable' => true,
  30. ),
  31. ),
  32. 'drag' => 'sort',
  33. ),
  34. );