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.
44 lines
1.7 KiB
44 lines
1.7 KiB
<?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\store\system;
|
|
|
|
use think\Validate;
|
|
|
|
class StoreValidate extends Validate
|
|
{
|
|
|
|
protected $rule = [
|
|
'image' => 'require',
|
|
'name' => 'require',
|
|
'phone' => 'require',
|
|
'address' => 'require',
|
|
'province' => 'require',
|
|
'city' => 'require',
|
|
'area' => 'require',
|
|
'street' => 'require',
|
|
'detailed_address' => 'require',
|
|
'day_time' => 'require',
|
|
];
|
|
|
|
protected $message = [
|
|
'image.require' => '请选择门店图片',
|
|
'name.require' => '门店名称必须填写',
|
|
'phone.require' => '门店手机号必须填写',
|
|
'address.require' => '请选择门店地址',
|
|
'province.require' => '请选择门店地址省份',
|
|
'city.require' => '请选择门店所属市',
|
|
'area.require' => '请选择门店所属区',
|
|
'street.require' => '请选择门店所属街道',
|
|
'detailed_address.require' => '请选择门店详细地址',
|
|
'day_time.require' => '请选择营业时间',
|
|
];
|
|
}
|
|
|