Showing
1 changed file
with
7 additions
and
18 deletions
@@ -22,30 +22,19 @@ public class ZhiMaCallUtil { | @@ -22,30 +22,19 @@ public class ZhiMaCallUtil { | ||
22 | private static String url="https://openapi.alipaydev.com/gateway.do";//"https://openapi.alipay.com/gateway.do" | 22 | private static String url="https://openapi.alipaydev.com/gateway.do";//"https://openapi.alipay.com/gateway.do" |
23 | */ | 23 | */ |
24 | 24 | ||
25 | - private static String APP_ID = "2013080700000742"; | ||
26 | - private static String APP_PRIVATE_KEY = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOfywqINCNC+IFvg" + | ||
27 | - "zqq3aEYxmh89WamWL59FukMKoKYMDR1NWMgFLNX2ld6aRWWdlJCBUsTzH/8uabEj" + | ||
28 | - "fBOM5BK+N08GfkpCYRmzww2y1H8RZ4P3wtKu95UYdaq3Ir5ucfgKxGy/1ay2qQFZ" + | ||
29 | - "PAkvPtTw+qdkVOgPakvqCWgcFL8LAgMBAAECgYAYeTnmJV/vvo/lgePsiWucNHGh" + | ||
30 | - "qDSEu08NDCtqFX375zufAuFCQaGIdfs8QKTf4u+hC7QzCcAvibMnOKpH2c7apAEc" + | ||
31 | - "RUfTUUcY/UB/yIkvzjkvkMKZSXI6y3lyFn8mNEwQei9u4OdSg1IBVuWqZoyqilCm" + | ||
32 | - "ARMzXyoeAOY55MelSQJBAPP+sEbPadMENkzzkiiHCHuo3Y0OEF5Zv2h3LJmtRx/6" + | ||
33 | - "B60mrfaUSSbU/iNq0uzQSoDQlY2DxXb21l1LYZzgdn8CQQDzXFXNj/qkXIuTLjfK" + | ||
34 | - "YxIhwiNKYXXKeG9C6+MlviY2zVrKruuuHJMcJ8238hzRcPsX+TCwFd3VhHuL61jB" + | ||
35 | - "2+l1AkBhUNTH+VQQ6N4rhP5nkawNfkWXS+O1bgBMzzOHu7fhhhznr8S002H1zf/q" + | ||
36 | - "6mFkOJNum0L65XKtxzeqkDVHl7NLAkEAg/jKvxMZRRC60DH8J1DagFwbbzay/f2Z" + | ||
37 | - "uJzbLZiUeJucZNW/EUiFrnsXYG13m0y9nh6QfK0fA684oIQcOeTcEQJBAIxCxNUP" + | ||
38 | - "jXsvqTV2ypek3ktvutFwSFuvo0zD2sn2HNlMSfh3K6RZV2Q0Q4W7bLELKEEkxmJX" + | ||
39 | - "IMLSK3hQB7jYD0Q="; | ||
40 | - | ||
41 | - private static String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB"; | 25 | + private static String APP_ID = "2016091401906455"; |
26 | + private static String APP_PRIVATE_KEY = | ||
27 | + "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCIUEvqn36aBznEQ0LaoM6Cjb8Mf4iNI+XZc41DUumEj0IQCEBXx60Nil5IKZRETiXcKxMV24T1k1Ep8LfulIuaa4DOgxZgm0LlmJi/S8QlJXjDdMATyU84anGcoT8TQbC9Tq9HEtkCMcYBJHIOJA4ZdLEhEH9gmoArsHI5K6ucaOjDRgmzgKxX1slg8kiYr8ysLq2nRUarwBuZ1k0B5hypALzwkiJoFKBgiJYAibIYd/wWW1A+NOCYDJw+ASRw5gUwdXjuykuwoWj2Q9jG5nVg9hRHcbYo+mpTq6Dhx2EAYyWVMj3pBGlymaDzzmr4gK+DnZslbOYSGjPDAT72QTThAgMBAAECggEAKZ6qr0Znd0wBfUU0ImC67O2uiXhfDwkI4u3/EbE9D3ZWK2L5klOrKNk4lDvtwzVBJgoY17Gg1QJX48BVyIieX1W3jFZF/NUrBcMj0DSn/NeGGdeJ1gC/KXCGo9Yv1gdWmVZu+fptO9hKpoqkMGEd1P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==" | ||
28 | + ; | ||
29 | + | ||
30 | + private static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn3F+OpzvomabsyafmGUNrpMhFnBw/AJkJHDQa93vMSl5nk6mjje8/e39HfS/0Y7FQDu1bSA3jEgNpkDwjBpsa2fMMk+QdMb/I/fWQumibx8Mnc3/TjsSNPOP81Gkvz3yX8QRWHJIe+tMfZ51BoljKhSx5FQcHKQ2zq49IMuMi0IFzAgaPGOcvtT7Z3czrYtIpF3cAAj/PzflwfzXm3/5Krtuj71LdeRZeIKuYUXL7REP6/MoUJHvFjmLdWak7Uh+9PqX8lt8MZ0sOv21doMEkDhqrumDoSIPNB3/+nQQgpaekkogqcz5JnfTdJC8SEs79Enhgwisjt2Utb83b73qZQIDAQAB"; | ||
42 | 31 | ||
43 | private static String url="https://openapi.alipay.com/gateway.do"; | 32 | private static String url="https://openapi.alipay.com/gateway.do"; |
44 | 33 | ||
45 | //固定不变 | 34 | //固定不变 |
46 | private final static String ZHI_MA_PRODUCT_CODE="w1010100000000002978"; | 35 | private final static String ZHI_MA_PRODUCT_CODE="w1010100000000002978"; |
47 | private final static String input_charset = "utf-8"; | 36 | private final static String input_charset = "utf-8"; |
48 | - private final static String signType = "RSA";//目前支持RSA2和RSA,推荐使用RSA2 | 37 | + private final static String signType = "RSA2";//目前支持RSA2和RSA,推荐使用RSA2 |
49 | 38 | ||
50 | /** | 39 | /** |
51 | * 芝麻认知,请求biz_no | 40 | * 芝麻认知,请求biz_no |
-
Please register or login to post a comment