Showing
2 changed files
with
9 additions
and
4 deletions
@@ -80,10 +80,10 @@ public class RSAUtils { | @@ -80,10 +80,10 @@ public class RSAUtils { | ||
80 | } | 80 | } |
81 | 81 | ||
82 | 82 | ||
83 | - public static void main(String[] args) { | ||
84 | - boolean hh = verify("app_id=2016091401906455&auth_app_id=2016091401906455&body=有货订单-967466860544&buyer_id=2088202230034730&buyer_logon_id=ma_***@126.com&buyer_pay_amount=0.01&charset=utf-8&fund_bill_list=[{\"amount\":\"0.01\",\"fundChannel\":\"ALIPAYACCOUNT\"}]&gmt_create=2018-09-28 21:16:37&gmt_payment=2018-09-28 21:16:38&invoice_amount=0.01¬ify_id=2018092800222211638034730536853642¬ify_time=2018-09-28 21:16:38¬ify_type=trade_status_sync&out_trade_no=967466860544&point_amount=0.00&receipt_amount=0.01&seller_email=ouyin@yoho.cn&seller_id=2088421850636193&subject=有货订单-967466860544&total_amount=0.01&trade_no=2018092822001434730531453002&trade_status=TRADE_SUCCESS&version=1.0", "Ttg4ccpwuapdbtWv6GRoNGWFYqxvkm6QS1TV+5riZgOzehafhUnxup6jO+d0wZOT0vUkylUg/SUqwKHDqUCCl/XPPNVXEK2U8OFBZ/YrgekZkJ+p1IvwRgbbgeE2pGmzuDL7IiqAXidKzrr6dsLLM1YBMS2crVxLD2nL+WW449A=", "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB", "utf-8"); | 83 | + /* public static void main(String[] args) { |
84 | + boolean hh = verify("app_id=2016091401906455&auth_app_id=2016091401906455&body=有货订单-967466860544&buyer_id=2088202230034730&buyer_logon_id=ma_***@126.com&buyer_pay_amount=0.01&charset=utf-8&fund_bill_list=[{\"amount\":\"0.01\",\"fundChannel\":\"ALIPAYACCOUNT\"}]&gmt_create=2018-09-28 21:16:37&gmt_payment=2018-09-28 21:16:38&invoice_amount=0.01¬ify_id=2018092800222211638034730536853642¬ify_time=2018-09-28 21:16:38¬ify_type=trade_status_sync&out_trade_no=967466860544&point_amount=0.00&receipt_amount=0.01&seller_email=ouyin@yoho.cn&seller_id=2088421850636193&subject=有货订单-967466860544&total_amount=0.01&trade_no=2018092822001434730531453002&trade_status=TRADE_SUCCESS&version=1.0", "Ttg4ccpwuapdbtWv6GRoNGWFYqxvkm6QS1TV+5riZgOzehafhUnxup6jO+d0wZOT0vUkylUg/SUqwKHDqUCCl/XPPNVXEK2U8OFBZ/YrgekZkJ+p1IvwRgbbgeE2pGmzuDL7IiqAXidKzrr6dsLLM1YBMS2crVxLD2nL+WW449A=", "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB", "utf-8"); | ||
85 | System.out.println(hh); | 85 | System.out.println(hh); |
86 | - } | 86 | + }*/ |
87 | 87 | ||
88 | /** | 88 | /** |
89 | * 解密 | 89 | * 解密 |
1 | package com.yohoufo.order.common; | 1 | package com.yohoufo.order.common; |
2 | 2 | ||
3 | +import lombok.extern.slf4j.Slf4j; | ||
4 | + | ||
3 | import java.util.*; | 5 | import java.util.*; |
4 | 6 | ||
5 | /** | 7 | /** |
6 | * Created by chenchao on 2018/9/18. | 8 | * Created by chenchao on 2018/9/18. |
7 | */ | 9 | */ |
10 | +@Slf4j | ||
8 | public enum SellerOrderListType { | 11 | public enum SellerOrderListType { |
9 | 12 | ||
10 | IN_SALE(1, "出售中", | 13 | IN_SALE(1, "出售中", |
@@ -71,7 +74,9 @@ public enum SellerOrderListType { | @@ -71,7 +74,9 @@ public enum SellerOrderListType { | ||
71 | * @return | 74 | * @return |
72 | */ | 75 | */ |
73 | public static SellerOrderListType getOrderListType(int code){ | 76 | public static SellerOrderListType getOrderListType(int code){ |
74 | - return localCache.get(code); | 77 | + SellerOrderListType sellerOrderListType = localCache.get(code); |
78 | + log.info("method getOrderListType result is {} , code is {}", sellerOrderListType, code); | ||
79 | + return sellerOrderListType; | ||
75 | } | 80 | } |
76 | 81 | ||
77 | public int getType() { | 82 | public int getType() { |
-
Please register or login to post a comment