CRMEB_PRO_M/app/validate/admin/notification/SmsConfigValidate.php

40 lines
1.2 KiB
PHP
Raw 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\notification;
use think\Validate;
/**
*
* Class SmsConfigValidate
* @package app\validates\admin
*/
class SmsConfigValidate extends Validate
{
/**
* 定义验证规则
* @var array
*/
protected $rule = [
'sms_account' => ['require'],
'sms_token' => ['require'],
];
/**
* 定义错误信息
* @var array
*/
protected $message = [
'sms_account.require' => '短信账号必须填写',
'sms_token.require' => '短信密码必须填写',
];
}