Withdrawal.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace addons\Boss\common\global_func\withdrawal;
  3. use common\enums\StatusEnum;
  4. class Withdrawal
  5. {
  6. public static function checkWithdrawLimit1(array $params): bool
  7. {
  8. return true;
  9. }
  10. public static function checkWithdrawLimit2(array $params): bool
  11. {
  12. return true;
  13. }
  14. public function show()
  15. {
  16. return [
  17. [
  18. 'id' => 1,
  19. 'addons_name' => 'Boss',
  20. 'render_setting' => [
  21. 'text' => '个人股东佣金满____元',
  22. 'setting' => [
  23. ['type' => 'text', 'name' => 'personal_agent_commission', 'default_val' => 0],
  24. ],
  25. 'tips' => ''
  26. ],
  27. 'validate_invoke' => [
  28. 'class' => 'addons\Boss\common\globalFunc\withdrawal\Withdrawal',
  29. 'method' => 'checkWithdrawLimit1'
  30. ]
  31. ],
  32. [
  33. 'id' => 2,
  34. 'addons_name' => 'Boss',
  35. 'render_setting' => [
  36. 'text' => '个人股东佣金小于____元',
  37. 'setting' => [
  38. ['type' => 'text', 'name' => 'personal_agent_lt__commission', 'default_val' => 0],
  39. ],
  40. 'tips' => ''
  41. ],
  42. 'validate_invoke' => [
  43. 'class' => 'addons\Boss\common\globalFunc\withdrawal\Withdrawal',
  44. 'method' => 'checkWithdrawLimit2'
  45. ]
  46. ]
  47. ];
  48. }
  49. }