|
|
|
@@ -445,8 +445,34 @@ public class WxPayShareService extends PayShareBaseAdapterService{ |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
System.out.println(queryOrderShareAmount("1511925291","4200001450202205126591001698","XHZfpVA0NzoXgLEjsujctUTcyj8Zur2C")); |
|
|
|
} |
|
|
|
// public static void main(String[] args) { |
|
|
|
// System.out.println(queryOrderShareAmount("1511925291","4200001455202205127949391954","XHZfpVA0NzoXgLEjsujctUTcyj8Zur2C")); |
|
|
|
// //System.out.println(test("1511925291", "1604439800", "wxed2f44705544b892", "4200001455202205127949391954", "XHZfpVA0NzoXgLEjsujctUTcyj8Zur2C", "684670745960046592", "D:\\apiclient_cert.p12")); |
|
|
|
// } |
|
|
|
// |
|
|
|
// private static String test(String mchId,String subMchId,String parentAppId,String transcationId,String apiKey,String orderNo,String certPaht) { |
|
|
|
// WxProfitSharingFinishP psFCmd = new WxProfitSharingFinishP(); |
|
|
|
// psFCmd.setMch_id(mchId); |
|
|
|
// psFCmd.setSub_mch_id(subMchId); |
|
|
|
// psFCmd.setAppid(parentAppId); |
|
|
|
// psFCmd.setNonce_str(Utility.generate32UUID()); |
|
|
|
// psFCmd.setTransaction_id(transcationId); |
|
|
|
// psFCmd.setOut_order_no(orderNo); |
|
|
|
// //psFCmd.setAmount(amount); |
|
|
|
// psFCmd.setDescription("分账已完结"); |
|
|
|
// psFCmd.setSign_type("HMAC-SHA256"); |
|
|
|
// |
|
|
|
// String response; |
|
|
|
// try { |
|
|
|
// psFCmd.setSign(WxPayment.createSignHMAC(BeanUtils.toStringMap(psFCmd), apiKey)); |
|
|
|
// log.info("request:" + psFCmd.toString()); |
|
|
|
// response = WxProfitSharing.finishOrder(BeanUtils.toStringMap(psFCmd), certPaht, mchId); |
|
|
|
// return response; |
|
|
|
// } catch (Exception e) { |
|
|
|
// e.printStackTrace(); |
|
|
|
// } |
|
|
|
// return null; |
|
|
|
// |
|
|
|
// } |
|
|
|
|
|
|
|
} |