| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * Created by PhpStorm.
- * Author: 芸众商城 www.yunzshop.com
- * Date: 2017/4/11
- * Time: 上午11:56
- */
- namespace app\common\services\finance;
- use app\common\traits\ValidatorTrait;
- class BalanceSet
- {
- use ValidatorTrait;
- const BALANCE_WITHDRAW_OPEN = 1; //开启余额提现
- const BALANCE_WITHDRAW_CLOSE = 0; //关闭余额提现
- public function rules()
- {
- return [
- 'poundage' => 'regex:/^[\d]?(\.[\d]{0,2})?$/',
- 'withdrawmoney' => 'regex:/^[0-9]+(.[0-9]{1,2})?$/'
- ];
- }
- public function atributeNames() {
- return [
- 'poundage'=> "请输入正确的提现手续费",
- 'withdrawmoney' => "请输入正确的提现限制金额"
- ];
- }
- }
|