chore: 重写初始提交(清空历史,整理后全量提交)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
namespace app\member\validate;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
/**
|
||||
* 会员卡密兑换校验
|
||||
*/
|
||||
class Card extends Validate
|
||||
{
|
||||
protected $rule = [
|
||||
'cardno' => 'require|length:6,100',
|
||||
'password' => 'require|length:4,100',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'cardno.require' => '请输入卡号',
|
||||
'cardno.length' => '卡号格式不正确',
|
||||
'password.require' => '请输入密码',
|
||||
'password.length' => '密码格式不正确',
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'redeem' => ['cardno', 'password'],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user