ServiceWithdrawal.php 1.15 KB
Newer Older
庄钊鑫 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<?php
/**
 * Created by PhpStorm.
 * User: airon
 */

namespace app\common\validate;

use think\Validate;

class ServiceWithdrawal extends Validate
{
    protected $regex = [
        'mobile' => '1\d{10}'
    ];

    protected $rule = [
        'uuid' => 'require|length:32',
        'money' =>'require|number|gt:0',
        'account' =>'require',
        'card' =>'require',
        'payee' =>'require',
        'mobile' =>'require|length:11|regex:mobile',
        'password' =>'require',
        'status' =>'require|number|in:1,2',
        'reason' => 'requireIf:type,2|min:4'
    ];

    protected $field = [
        'money' =>'金额',
        'account' =>'提现账户',
        'status' =>'审核状态',
        'reason' =>'拒绝理由',
        'card' =>'提现卡号',
        'payee' =>'收款人姓名',
        'mobile' =>'联系方式',
        'password' =>'密码'
    ];

    protected $message = [


    ];

    protected $scene = [
        'submit' => ['money','account','card','payee','mobile','password'],
        'update' => ['reason','status'],
        'filter' => [''],
        'changeStatus' => ['uuid','process'],
        'uuid' => ['uuid'],
    ];

}