account_setting.php 787 B

123456789101112131415161718192021222324252627
  1. <?php
  2. $account_id = Dever::input('set')['account_id'] ?? 0;
  3. if (!$account_id) {
  4. $account_id = Dever::input('field')['account_id'] ?? 0;
  5. }
  6. $account = Dever::db('account', 'api')->find($account_id);
  7. return array
  8. (
  9. 'update' => array
  10. (
  11. 'field' => array
  12. (
  13. 'platform_setting_id' => array
  14. (
  15. 'type' => 'select',
  16. 'option' => 'Dever::call("api/app.getSetting", '.$account['platform_id'].')',
  17. //'remote' => 'api/manage.getSettingName',
  18. //'remote_default' => false,
  19. ),
  20. 'value' => array
  21. (
  22. 'type' => 'textarea',
  23. 'autosize' => array('minRows' => 2),
  24. ),
  25. ),
  26. ),
  27. );