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 {
String tradeType = payPackage.getTradeType();
if (TradeType.MICROPAY.name().equalsIgnoreCase(tradeType)) {
payPackage.declareWeixinPayAccount(weixinAccount);
payPackage.setSign(weixinSignature.sign(payPackage));
String para = XmlStream.toXML(payPackage);
WeixinResponse response = weixinExecutor.post(
getRequestUri("micropay_uri"), para);

View File

@ -2,7 +2,7 @@ package com.foxinmy.weixin4j.mp.type;
/**
* 卡券颜色
*
*
* @className CardColor
* @author jinyu(foxinmy@gmail.com)
* @date 2016年4月4日
@ -27,7 +27,6 @@ public enum CardColor {
this.g = g;
this.b = b;
this.hex = hex;
;
}
public int getR() {