CRMEB_PRO_M/app/validate/admin/work/WechatWorkChannelCodeValidate.php

41 lines
1.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
namespace app\validate\admin\work;
use think\Validate;
class WechatWorkChannelCodeValidate extends Validate
{
/**
* @var array
*/
protected $rule = [
'name' => 'require',
'reserve_userid' => 'require',
'cate_id' => 'require',
'label_id' => 'require',
'welcome_words' => 'require',
];
/**
* @var array
*/
protected $message = [
'name.require' => '请填写渠道二维码名称',
'reserve_userid.require' => '请选择渠道二维码备用成员',
'cate_id.require' => '请选择渠道二维码分类',
'label_id.require' => '请选择渠道二维码标签',
'welcome_words.require' => '请填写渠道二维码欢迎语',
];
}