Initial commit: queue workspace

Made-with: Cursor
This commit is contained in:
apple
2026-03-21 02:55:24 +08:00
commit 78de918c37
12388 changed files with 1840126 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<?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\kefu;
use think\Validate;
class LoginValidate extends Validate
{
protected $regex = ['account' => '/^[a-zA-Z0-9]{4,30}$/'];
/**
* @var string[]
*/
protected $rule = [
'account' => ['require', 'account', 'length:4,64'],
'password' => ['require', 'length:4,64']
];
/**
* @var string[]
*/
protected $message = [
'account.require' => '请填写账号',
'account.account' => '请填写正确的账号',
'account.length' => '账号长度4-64位字符',
'password.require' => '请填写密码',
'pwd.length' => '密码长度4-64位字符',
];
}

View File

@@ -0,0 +1,41 @@
<?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\kefu;
use think\Validate;
class SpeechcraftValidate extends Validate
{
/**
* @var string[]
*/
protected $rule = [
'title' => 'chsAlphaNum|length:0,50',
'cate_id' => 'require|number',
'message' => 'require|length:0,500',
'sort' => 'number',
];
/**
* @var string[]
*/
protected $message = [
'title.chsAlphaNum' => '请填汉字字母或者数字',
'title.length' => '标题长度不能超过50个字',
'cate_id.require' => '请选择分类',
'cate_id.number' => '分类必须为数字',
'message.require' => '请填写话术内容',
'message.length' => '话术长度不能超过500个字',
'sort.number' => '排序必须为数字',
];
}