1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-admin 企业快速开发的saas管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- namespace app\validate\web;
- use think\Validate;
- /**
- * 电脑端设置验证
- * Class WebConfig
- * @package app\validate\web
- */
- class WebConfig extends Validate
- {
- protected $rule = [
- 'is_show_shop' => 'number|between:0,1',
- 'shop_ad_image' => 'require|max:255',
- 'site_ids' =>'require'
- ];
- protected $message = [
- 'is_show_shop.number' => 'validate_shop_config.is_show_shop_number',
- 'is_show_shop.between' => 'validate_shop_config.is_show_shop_between',
- 'shop_ad_image.require' => 'validate_shop_config.shop_ad_image_require',
- 'shop_ad_image.max' => 'validate_shop_config.shop_ad_image_max',
- 'site_ids.require' => 'validate_shop_config.site_ids_require',
- ];
- protected $scene = [
- 'set' => ['is_show_shop', 'shop_ad_image', 'site_ids'],
- ];
- }
|