代码功能更新

This commit is contained in:
root
2025-05-18 07:42:27 +00:00
parent 7fc1d422a1
commit 4a90c41da2
2083 changed files with 695218 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace app\validate\admin\member;
use think\Validate;
class Edit extends Validate
{
//数组顺序就是检测的顺序
protected $rule = [
'password' => 'confirm:re_password|min:6|max:26',
];
//定义内置方法检验失败后返回的字符
protected $message = [
'password.confirm' => '两次密码输入不相同',
'password.min' => '密码长度不能低于6个字符',
'password.max' => '密码长度不能高于26个字符',
];
}