<?php

namespace app\validate\blue;

use think\Validate;

class BankValidate extends Validate
{

    protected $rule = [
        "truenname"     => "require",
        "idcard"        => "require|idCard",
        "mobile"        => "require|mobile",
        "bank_num"      => "require",
        "bank_code"     => "require",
    ];


    protected $message = [
        "truenname.require"     => "请输入姓名",
        "idcard.require"        => "请输入身份证号",
        "idcard.idCard"         => "身份证号有误",
        "mobile.require"        => "请输入手机号码",
        "mobile.mobile"         => "手机号有误",
        "bank_num.require"      => "请输入银行卡号",
        "bank_code.require"     => "请选择开户行",
    ];
    protected $scene = [
        'add'  =>  ['truenname','idcard','mobile','bank_num','bank_code'],
    ];

}