海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
920 B

  1. <?php
  2. namespace App\AdminAgent\Forms;
  3. use Dcat\Admin\Widgets\Form;
  4. class Setting extends Form
  5. {
  6. /**
  7. * Handle the form request.
  8. *
  9. * @param array $input
  10. *
  11. * @return mixed
  12. */
  13. public function handle(array $input)
  14. {
  15. // dump($input);
  16. admin_setting($input);
  17. return $this->response()->success('保存成功')->refresh();
  18. }
  19. /**
  20. * Build a form here.
  21. */
  22. public function form()
  23. {
  24. $this->text('earnest')->required()->help('用户支付订金、定金、首付款的金额');
  25. $this->text('earnest_timeout')->required()->help('单位:分钟。当通过订金、定金、首付款支付时,用户超过该时间未支付将关闭订单,且定金不退');
  26. }
  27. /**
  28. * The data of the form.
  29. *
  30. * @return array
  31. */
  32. public function default()
  33. {
  34. return admin_setting()->toArray();
  35. }
  36. }