123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
- * ============================================================================
- *
- * ============================================================================
- * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
- * 网站地址: https://www.valimart.net/
- * ----------------------------------------------------------------------------
- *
- * ============================================================================
- * 验证器
- */
- class Selleraddress extends Validate
- {
- protected $rule = [
- 'seller_name'=>'require',
- 'area_id'=>'require|number',
- 'city_id'=>'require|number',
- 'area_info'=>'require',
- 'daddress_detail'=>'require',
- ];
- protected $message = [
- 'seller_name.require'=>'收件人不能为空',
- 'area_id.require'=>'请选择地址|请选择地址',
- 'area_id.number'=>'请选择地址|请选择地址',
- 'city_id.require'=>'请选择地址|请选择地址',
- 'city_id.number'=>'请选择地址|请选择地址',
- 'area_info.require'=>'请选择地址',
- 'daddress_detail.require'=>'详细地址不能为空',
- ];
- protected $scene = [
- 'address_add' => ['seller_name', 'area_id', 'city_id', 'area_info', 'daddress_detail', 'daddress_telphone'],
- ];
- }
|