| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace addons\Boss\common\global_func\withdrawal;
- use common\enums\StatusEnum;
- 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' => 'Boss',
- 'render_setting' => [
- 'text' => '个人股东佣金满____元',
- 'setting' => [
- ['type' => 'text', 'name' => 'personal_agent_commission', 'default_val' => 0],
- ],
- 'tips' => ''
- ],
- 'validate_invoke' => [
- 'class' => 'addons\Boss\common\globalFunc\withdrawal\Withdrawal',
- 'method' => 'checkWithdrawLimit1'
- ]
- ],
- [
- 'id' => 2,
- 'addons_name' => 'Boss',
- 'render_setting' => [
- 'text' => '个人股东佣金小于____元',
- 'setting' => [
- ['type' => 'text', 'name' => 'personal_agent_lt__commission', 'default_val' => 0],
- ],
- 'tips' => ''
- ],
- 'validate_invoke' => [
- 'class' => 'addons\Boss\common\globalFunc\withdrawal\Withdrawal',
- 'method' => 'checkWithdrawLimit2'
- ]
- ]
- ];
- }
- }
|