BalanceSet.php 777 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/4/11
  6. * Time: 上午11:56
  7. */
  8. namespace app\common\services\finance;
  9. use app\common\traits\ValidatorTrait;
  10. class BalanceSet
  11. {
  12. use ValidatorTrait;
  13. const BALANCE_WITHDRAW_OPEN = 1; //开启余额提现
  14. const BALANCE_WITHDRAW_CLOSE = 0; //关闭余额提现
  15. public function rules()
  16. {
  17. return [
  18. 'poundage' => 'regex:/^[\d]?(\.[\d]{0,2})?$/',
  19. 'withdrawmoney' => 'regex:/^[0-9]+(.[0-9]{1,2})?$/'
  20. ];
  21. }
  22. public function atributeNames() {
  23. return [
  24. 'poundage'=> "请输入正确的提现手续费",
  25. 'withdrawmoney' => "请输入正确的提现限制金额"
  26. ];
  27. }
  28. }