init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
25
application/admin/validate/shopro/chat/CommonWord.php
Normal file
25
application/admin/validate/shopro/chat/CommonWord.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\validate\shopro\chat;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class CommonWord extends Validate
|
||||
{
|
||||
protected $rule = [
|
||||
'room_id' => 'require',
|
||||
'name' => 'require',
|
||||
'content' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'room_id.require' => '客服房间号必须填写',
|
||||
'name.require' => '常用语名称必须填写',
|
||||
'content.require' => '常用于内容必须填写',
|
||||
];
|
||||
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['room_id', 'name', 'content']
|
||||
];
|
||||
}
|
||||
29
application/admin/validate/shopro/chat/CustomerService.php
Normal file
29
application/admin/validate/shopro/chat/CustomerService.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\validate\shopro\chat;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class CustomerService extends Validate
|
||||
{
|
||||
protected $rule = [
|
||||
'name' => 'require',
|
||||
'avatar' => 'require',
|
||||
'room_id' => 'require',
|
||||
'auth' => 'require',
|
||||
'auth_id' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'name.require' => '客服名称必须填写',
|
||||
'avatar.require' => '客服头像必须上传',
|
||||
'room_id.require' => '客服房间号必须填写',
|
||||
'auth.require' => '客服所属身份必须选择',
|
||||
'auth_id.require' => '客服所属身份必须选择',
|
||||
];
|
||||
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['name', 'avatar', 'room_id', 'auth', 'auth_id']
|
||||
];
|
||||
}
|
||||
25
application/admin/validate/shopro/chat/Question.php
Normal file
25
application/admin/validate/shopro/chat/Question.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\validate\shopro\chat;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Question extends Validate
|
||||
{
|
||||
protected $rule = [
|
||||
'room_id' => 'require',
|
||||
'title' => 'require',
|
||||
'content' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'room_id.require' => '客服房间号必须填写',
|
||||
'title.require' => '猜你想问标题必须填写',
|
||||
'content.require' => '猜你想问内容必须填写',
|
||||
];
|
||||
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['room_id', 'title', 'content']
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user