This commit is contained in:
parent
71c8cb22ae
commit
bfecd0f0ae
@ -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);
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user