/** * * 回复通知 * @param bool $needSign 是否需要签名输出 * @throws WxPayException */ private final function ReplyNotify($needSign = true) { //如果需要签名 if ($needSign == true && $this->GetReturn_code() == "SUCCESS") { $this->SetSign(); } $this->wxPayApi->replyNotify($this->ToXml()); }
/** * * 回复通知 * @param bool $needSign 是否需要签名输出 */ private final function ReplyNotify($needSign = true) { //如果需要签名 if ($needSign == true && $this->GetReturn_code($return_code) == "SUCCESS") { $this->SetSign(); } WxPayApi::setConfig($this->config); WxPayApi::replyNotify($this->ToXml()); }