<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 应用配置
 */
namespace app\smartbc\validate;
use think\Validate;

class Config extends Validate{

    protected $rule = [
        'service_telephone' => 'require',
        'end_time'          => 'require|number|between: 0,100',
    ];

    protected $message = [
        'service_telephone'  => '客服电话必须填写',
        'end_time'           => '优惠券过期时间必须填写,(0-100)之间',
    ];

    protected $scene = [
        'article' => ['shore_img','shore_text','mch_text','mch_qrcode'], //文案
        'save'    => ['service_telephone','end_time'],
    ];
}