'require', 'is_check' => 'require|in:1,2', 'fail_msg' => 'requireIf:is_check,2' ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'is_check' => '审核状态', 'fail_msg' => '失败原因' ]; /** * @notes 编辑场景 * @return MerchantBankValidate * @author likeadmin * @date 2024/05/13 15:06 */ public function sceneEdit() { return $this->only(['id','is_check','fail_msg']); } /** * @notes 删除场景 * @return MerchantBankValidate * @author likeadmin * @date 2024/05/13 15:06 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return MerchantBankValidate * @author likeadmin * @date 2024/05/13 15:06 */ public function sceneDetail() { return $this->only(['id']); } }