You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ymww_backend/application/admin/validate/shopro/chat/CustomerService.php

30 lines
778 B

1 year ago
<?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']
];
}