全栈小学生 abaa4201fb add shop
2026-01-13 09:16:43 +08:00

40 lines
1.3 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
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace addon\shop\app\validate\delivery;
use core\base\BaseValidate;
/**
* 电子面单验证器
* Class ElectronicSheet
* @package addon\shop\app\validate\delivery
*/
class ElectronicSheet extends BaseValidate
{
protected $rule = [
'template_name' => 'require',
'express_company_id' => 'require',
];
protected $message = [
'template_name.require' => [ 'common_validate.require', [ 'template_name' ] ],
'express_company_id.require' => [ 'common_validate.require', [ 'express_company_id' ] ],
];
protected $scene = [
"add" => [ 'template_name', 'express_company_id' ],
"edit" => [ 'template_name', 'express_company_id' ]
];
}