public function valid() { parent::valid(); if (!$this->transaction_id && !$this->out_trade_no && !$this->refund_id && !$this->out_refund_no) { throw new YDWXException("transaction_id与out_trade_no,out_refund_no,refund_id至少设置一个"); } }