You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
ymww_backend/addons/shopro/validate/user/Account.php

28 lines
698 B

<?php
namespace addons\shopro\validate\user;
use think\Validate;
class Account extends Validate
{
protected $rule = [
'account_name' => 'require',
'account_header' => 'require',
'account_no' => 'require'
];
protected $message = [
'account_name.require' => '请填写姓名',
'account_header.require' => '请填写开户行',
'account_no.require' => '请填写账号信息',
];
protected $scene = [
'wechat' => ['account_name', 'account_name', 'account_no'],
'alipay' => ['account_name', 'account_name', 'account_no'],
'bank' => ['account_name', 'account_name', 'account_no']
];
}