From 56da433d828926de042a97e206d23af3d04d629d Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 12 May 2022 19:09:23 +0800 Subject: [PATCH] fix bug --- .../schedule/CouponOrderExpiringSchedule.java | 4 +-- .../service/share/wx/WxPayShareService.java | 32 +++++++++++++++++-- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/mallinkSchedule/src/main/java/com/iformall/schedule/CouponOrderExpiringSchedule.java b/mallinkSchedule/src/main/java/com/iformall/schedule/CouponOrderExpiringSchedule.java index b30cffd5c..bb59ddc3f 100644 --- a/mallinkSchedule/src/main/java/com/iformall/schedule/CouponOrderExpiringSchedule.java +++ b/mallinkSchedule/src/main/java/com/iformall/schedule/CouponOrderExpiringSchedule.java @@ -86,8 +86,8 @@ public class CouponOrderExpiringSchedule { } - //@Scheduled(cron = "0 0/5 * * * ?") // 每天凌晨00:05 - @Scheduled(cron = "0 0 5 * * ?") // 每天凌晨00:05 + @Scheduled(cron = "0 0/5 * * * ?") // 每天凌晨00:05 + //@Scheduled(cron = "0 0 5 * * ?") // 每天凌晨00:05 // @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 public void couponOrderRefundSchedule() { CouponOrderExpiringSchedule proxy = (CouponOrderExpiringSchedule) AopContext.currentProxy(); diff --git a/mallinkService/src/main/java/com/iformall/service/pay/service/share/wx/WxPayShareService.java b/mallinkService/src/main/java/com/iformall/service/pay/service/share/wx/WxPayShareService.java index fcbe34c91..d378cb247 100644 --- a/mallinkService/src/main/java/com/iformall/service/pay/service/share/wx/WxPayShareService.java +++ b/mallinkService/src/main/java/com/iformall/service/pay/service/share/wx/WxPayShareService.java @@ -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; +// +// } }