| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace addons\Distribution\common\global_func\withdrawal;
- class Withdrawal
- {
- public static function checkWithdrawLimit1(array $params): bool
- {
- return true;
- }
- public static function checkWithdrawLimit2(array $params): bool
- {
- return true;
- }
- public function show()
- {
- return [
- [
- 'id' => 1,
- 'addons_name' => 'Distribution',
- 'render_setting' => [
- 'text' => '个人分销佣金满____元',
- 'setting' => [
- ['type' => 'text', 'name' => 'personal_agent_commission', 'default_val' => 0],
- ],
- 'tips' => ''
- ],
- 'validate_invoke' => [
- 'class' => 'addons\Distribution\common\globalFunc\withdrawal\Withdrawal',
- 'method' => 'checkWithdrawLimit1'
- ]
- ],
- [
- 'id' => 2,
- 'addons_name' => 'Distribution',
- 'render_setting' => [
- 'text' => '个人分销佣金小于____元',
- 'setting' => [
- ['type' => 'text', 'name' => 'personal_agent_lt__commission', 'default_val' => 0],
- ],
- 'tips' => ''
- ],
- 'validate_invoke' => [
- 'class' => 'addons\Distribution\common\globalFunc\withdrawal\Withdrawal',
- 'method' => 'checkWithdrawLimit2'
- ]
- ]
- ];
- }
- }
|