This commit is contained in:
jinyu 2016-05-31 18:19:54 +08:00
parent 71c8cb22ae
commit bfecd0f0ae
2 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,8 @@ public class PayApi extends MchApi {
throws WeixinException { throws WeixinException {
String tradeType = payPackage.getTradeType(); String tradeType = payPackage.getTradeType();
if (TradeType.MICROPAY.name().equalsIgnoreCase(tradeType)) { if (TradeType.MICROPAY.name().equalsIgnoreCase(tradeType)) {
payPackage.declareWeixinPayAccount(weixinAccount);
payPackage.setSign(weixinSignature.sign(payPackage));
String para = XmlStream.toXML(payPackage); String para = XmlStream.toXML(payPackage);
WeixinResponse response = weixinExecutor.post( WeixinResponse response = weixinExecutor.post(
getRequestUri("micropay_uri"), para); getRequestUri("micropay_uri"), para);

View File

@ -27,7 +27,6 @@ public enum CardColor {
this.g = g; this.g = g;
this.b = b; this.b = b;
this.hex = hex; this.hex = hex;
;
} }
public int getR() { public int getR() {