'require', 'preEstimateNoList' => 'require', 'timestamp' => 'require', 'reportType' => 'require|in:01,02,04', 'companyCode' => 'require', 'channelCode' => 'require|in:XJ,PH', ]; // 定义错误消息 protected $message = [ 'bankEstimateNo.require' => '银行正式评估申请编号不能为空', 'preEstimateNoList.require' => '预评估编号列表不能为空', 'timestamp.require' => '时间戳不能为空', 'reportType.require' => '报告类型不能为空', 'reportType.in' => '报告类型只能是01、02、04', 'companyCode.require' => '公司编码不能为空', 'channelCode.require' => '渠道标识不能为空', 'channelCode.in' => '渠道标识只能是XJ或PH', ]; }