public void orderNotify() { OrderNotify notify = XmlConvert.getObj <OrderNotify>(Request.InputStream); WxBaseMsg resp = new WxBaseMsg() { return_code = WxReturnCode.FAIL, return_msg = "OK" }; if (notify.return_code.Equals(WxReturnCode.SUCCESS)) { OrderNotifyPool.addNotify(notify); notify.return_code = WxReturnCode.SUCCESS; notify.return_code = "Recive notify fail"; Response.Write(notify.toXml()); } else { Response.Write(notify.toXml()); } }
public bool PayOk(string tradeNo) { return(OrderNotifyPool.getNotify("12343214", WxConfigFile.config().AppID, tradeNo) != null); }