Withdrawal.php 1.6 KB

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