WithdrawApplySetService.php 519 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\frontend\modules\withdraw\services;
  3. use app\common\facades\Setting;
  4. class WithdrawApplySetService extends WithdrawApplySetBaseService
  5. {
  6. public function checkPayWay($payWay): bool
  7. {
  8. $withdraw_set = Setting::get('withdraw.income');
  9. foreach ($withdraw_set as $key => $item) {
  10. if ($key == $payWay && !$item) {
  11. return false;
  12. // return $this->errorJson('该提现方式已关闭!');
  13. }
  14. }
  15. return true;
  16. }
  17. }