chore: 添加静态资源文件和版本配置文件
添加大量图片、字体、音频等静态资源文件,包括用户界面图片、模板文件和安装界面素材 添加系统版本配置文件(.version)和常量定义文件(.constant) 更新供应商依赖文件,包括Symfony VarDumper组件和相关许可证文件 添加验证码配置文件(captcha.php)和.gitignore规则
This commit is contained in:
47
app/validate/api/LoginValidate.php
Normal file
47
app/validate/api/LoginValidate.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\validate\api;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class LoginValidate extends Validate
|
||||
{
|
||||
/**
|
||||
* 定义验证规则
|
||||
* 格式:'字段名' => ['规则1','规则2'...]
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $rule = [
|
||||
'account' => ['require', 'alphaDash', 'length:4,64'],
|
||||
'pwd' => ['require', 'length:4,64'],
|
||||
];
|
||||
|
||||
/**
|
||||
* 定义错误信息
|
||||
* 格式:'字段名.规则名' => '错误信息'
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $message = [
|
||||
'account.require' => '请填写收银台账号',
|
||||
'account.alphaDash' => '收银台账号应为数字、字母',
|
||||
'account.length' => '收银台账号长度4-64位字符',
|
||||
'pwd.require' => '请输入密码',
|
||||
'pwd.length' => '密码长度4-64位字符',
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
44
app/validate/api/user/AddressValidate.php
Normal file
44
app/validate/api/user/AddressValidate.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\validate\api\user;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
/**
|
||||
* 用户地址验证类
|
||||
* Class AddressValidate
|
||||
* @package app\validate\api\user
|
||||
*/
|
||||
class AddressValidate extends Validate
|
||||
{
|
||||
//移动
|
||||
protected $regex = ['phone' => '/^1[3456789]\d{9}|([0-9]{3,4}-)?[0-9]{7,8}$/'];
|
||||
|
||||
protected $rule = [
|
||||
'real_name' => 'require|max:25',
|
||||
'phone' => 'require|regex:phone',
|
||||
'province' => 'require',
|
||||
'city' => 'require',
|
||||
'district' => 'require',
|
||||
'detail' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'real_name.require' => '名称必须填写',
|
||||
'real_name.max' => '名称最多不能超过25个字符',
|
||||
'phone.require' => '手机号必须填写',
|
||||
'phone.regex' => '手机号格式错误',
|
||||
'province.require' => '省必须填写',
|
||||
'city.require' => '市名称必须填写',
|
||||
'district.require' => '区/县名称必须填写',
|
||||
'detail.require' => '详细地址必须填写',
|
||||
];
|
||||
}
|
||||
52
app/validate/api/user/RegisterValidates.php
Normal file
52
app/validate/api/user/RegisterValidates.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\validate\api\user;
|
||||
|
||||
|
||||
use think\Validate;
|
||||
|
||||
/**
|
||||
* 注册验证
|
||||
* Class RegisterValidates
|
||||
* @package app\http\validates\api\user
|
||||
*/
|
||||
class RegisterValidates extends Validate
|
||||
{
|
||||
protected $regex = ['phone' => '/^1[3456789]\d{9}$/'];
|
||||
|
||||
protected $rule = [
|
||||
'phone' => 'require|regex:phone',
|
||||
'account' => 'require|regex:phone',
|
||||
'password' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'phone.require' => '手机号必须填写',
|
||||
'phone.regex' => '手机号格式错误',
|
||||
'account.require' => '手机号必须填写',
|
||||
'account.regex' => '手机号格式错误',
|
||||
'captcha.require' => '验证码必须填写',
|
||||
'captcha.length' => '验证码长度不正确',
|
||||
'password.require' => '密码必须填写',
|
||||
];
|
||||
|
||||
|
||||
public function sceneCode()
|
||||
{
|
||||
return $this->only(['phone']);
|
||||
}
|
||||
|
||||
|
||||
public function sceneRegister()
|
||||
{
|
||||
return $this->only(['account', 'captcha', 'password']);
|
||||
}
|
||||
}
|
||||
47
app/validate/api/user/StoreServiceFeedbackValidate.php
Normal file
47
app/validate/api/user/StoreServiceFeedbackValidate.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\validate\api\user;
|
||||
|
||||
|
||||
use think\Validate;
|
||||
|
||||
/**
|
||||
* 话术验证
|
||||
* Class StoreServiceFeedbackValidate
|
||||
* @package app\validate\api\user
|
||||
*/
|
||||
class StoreServiceFeedbackValidate extends Validate
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
protected $regex = ['phone' => '/^1[3456789]\d{9}$/'];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'phone' => 'require|regex:phone',
|
||||
'rela_name' => 'require',
|
||||
'content' => 'require',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
protected $message = [
|
||||
'phone.require' => '请输入手机号',
|
||||
'phone.regex' => '手机号格式错误',
|
||||
'content.require' => '请填写反馈内容',
|
||||
'rela_name.require' => '请填写真实姓名',
|
||||
];
|
||||
}
|
||||
44
app/validate/api/user/UserApplyValidate.php
Normal file
44
app/validate/api/user/UserApplyValidate.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\validate\api\user;
|
||||
|
||||
|
||||
use think\Validate;
|
||||
|
||||
/**
|
||||
* 注册验证
|
||||
* Class UserApplyValidate
|
||||
* @package app\http\validates\api\user
|
||||
*/
|
||||
class UserApplyValidate extends Validate
|
||||
{
|
||||
protected $regex = ['phone' => '/^1[3456789]\d{9}$/'];
|
||||
|
||||
protected $rule = [
|
||||
'phone' => 'require|regex:phone',
|
||||
'name' => 'require|length:2,20',
|
||||
'system_name' => 'require|length:4,64',
|
||||
'images' => 'require'
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'phone.require' => '手机号必须填写',
|
||||
'phone.regex' => '手机号格式错误',
|
||||
'name.require' => '联系人必须填写',
|
||||
'name.length' => '联系人2-20长度字符',
|
||||
'captcha.require' => '验证码必须填写',
|
||||
'captcha.length' => '验证码长度不正确',
|
||||
'system_name.require' => '商户名称必须填写',
|
||||
'system_name.length' => '商户名称4-64长度字符',
|
||||
'images.require' => '请上传相关资质证明图片',
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user