|
|
|
@@ -429,5 +429,24 @@ public class WxPayShareService extends PayShareBaseAdapterService{ |
|
|
|
return new ShareAccountResult(true, null, "success", returnMap); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static String queryOrderShareAmount(String mchId,String transcationId,String apiKey) { |
|
|
|
WxProfitSharingP psCmd = new WxProfitSharingP(); |
|
|
|
psCmd.setMch_id(mchId);//服务商商户id |
|
|
|
psCmd.setNonce_str(Utility.generate32UUID()); |
|
|
|
psCmd.setTransaction_id(transcationId); |
|
|
|
psCmd.setSign_type("HMAC-SHA256"); |
|
|
|
|
|
|
|
try { |
|
|
|
psCmd.setSign(WxPayment.createSignHMAC(BeanUtils.toStringMap(psCmd), apiKey)); |
|
|
|
return WxProfitSharing.queryOrderShareAmount(BeanUtils.toStringMap(psCmd)); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
System.out.println(queryOrderShareAmount("1511925291","4200001450202205126591001698","XHZfpVA0NzoXgLEjsujctUTcyj8Zur2C")); |
|
|
|
} |
|
|
|
|
|
|
|
} |