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.
ymww_backend/addons/shopro/validate/order/Aftersale.php

30 lines
720 B

1 year ago
<?php
namespace addons\shopro\validate\order;
use think\Validate;
class Aftersale extends Validate
{
protected $rule = [
'type' => 'require',
'order_id' => 'require',
'order_item_id' => 'require',
'mobile' => 'require',
'reason' => 'require',
];
protected $message = [
'type.require' => '请选择售后类型',
'order_id.require' => '参数错误',
'order_item_id.require' => '参数错误',
'mobile.require' => '请填写手机号',
'reason.require' => '请选择售后原因',
];
protected $scene = [
'add' => ['type', 'order_id', 'order_item_id', 'mobile', 'reason'],
];
}