WithdrawConfig.php 794 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\frontend\modules\withdraw\services;
  3. use app\common\modules\shop\CommonConfig;
  4. class WithdrawConfig extends CommonConfig
  5. {
  6. public static $current;
  7. static public function current()
  8. {
  9. if (!isset(static::$current)) {
  10. static::$current = new static();
  11. }
  12. return static::$current;
  13. }
  14. protected function _getItems()
  15. {
  16. $result = [
  17. 'withdraw_apply' => [
  18. [
  19. 'income_type' => 'common',
  20. 'class' => function () {
  21. return new \app\frontend\modules\withdraw\services\WithdrawApplySetService();
  22. }
  23. ],
  24. ],
  25. ];
  26. $this->items = $result;
  27. return $this->items;
  28. }
  29. }