Browse Source

后台完善

xxxrrrdddd 3 years ago
parent
commit
66ab4141cf

+ 50 - 35
application/extra/site.php

@@ -46,42 +46,57 @@ return array (
   'order_refund_land' => '20',
   'order_refund_air' => '30',
   'tmap_key' => 'YV7BZ-7IFWV-GWDPV-U2C5Q-2XNT5-MNBY6',
-  'mch_key' => 'sadasdasdasdasdasdas',
+  'mch_key' => '-----BEGIN PRIVATE KEY-----
+MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDcZuUxYGpVezLZ
+weZH0GDvAxcrB6iU1gkfIuubPb5ocLU+dxazmWc92Em95mZNLW38OisDDoY6744i
+K+kNB3oHdJtXyD8jVO+jhcY58ggQ/ZEOKoPBEphsmdgjMYjO0LoeJ+dSnHyILoJm
+9LqYd/qBthogJCSyBHGnAe4rXbWcRCgAwf/Ku3LIABCdtz/MgKMZnM0k/db7Ud+X
+erMt6oOMZT9Ye3JfXxGdaHvwwM3/IB7E3XGg9qurtQNVq1klmIMyi9R24nmlx4fw
+d+HvvdL+orcocrHT+lUP6E3rOoMPg5EcLFX9+BxMlLcFks3u2tuw+s5gUtndPE7I
+hrjInYonAgMBAAECggEAdA0J6XHnC5OPNvHOG0oxgCiUbmfd8GCy9N4iSN+9/qg6
+BuYV4gOIRRw51/AVNdYR75mBRF7FdwrkQEH2uJGTQ5G2qgYamLQEaonp0mEKtkeN
+tXPVZDgyYhyvnfhbHOry1SYVu34CZIJ4z1VVWyrxkJMeNoZRfBqy7Ukq61KwadLO
++vmV8AHKNGEkld1zSCVw6FQkeNjjh5+pZCUxwIG/d3W840L+L1BozyjVwZIFzUHr
+Wg5rOBvDQEFE0rzpSXQkN8zY+djI4+fEKRe9NXHN2ZuGQFYk3p8b8MOBGm/9ZdxE
+eUoNH95iG8bYkQUSa2NAtldYtURbHI6h2pyORTfYAQKBgQD5b2RSi+sa4MU3bDrT
+yupjBtQgQiHjAI58GX9FHqUKVDpVH1KCPfg14HFpHv8ka24M0b0q97Q6Lx7Q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zaH0XWEdZfz+A9I7LUUKhigrl08BhGjmlj2OTEh9Wti1QNWurNeo
+lpt1NrOgv9X6tJAmEFweprKdQUWO3F/se0ZyTlpc4OY9mf7L0u4R2muNz4kFRs3U
+TUerZQ+xwiKFEk5f6TVGjCYhEb5Yj3JGklb3VzcEjtf/BNNVY7qQUORVcbWnpel6
+29PPnBR4Nw==
 -----END CERTIFICATE-----',
   'settle_type' => '1',
 );

BIN
database/wxpay/apiclient_cert.p12


+ 24 - 0
database/wxpay/apiclient_cert.pem

@@ -0,0 +1,24 @@
+-----BEGIN CERTIFICATE-----
+MIID8zCCAtugAwIBAgIUa2av2vP8fUr9qKUfYRlLDchDK+EwDQYJKoZIhvcNAQEL
+BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT
+FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDVQQDExJUZW5wYXkuY29tIFJvb3Qg
+Q0EwHhcNMjExMjEwMDkyMTI4WhcNMjYxMjA5MDkyMTI4WjCBhDETMBEGA1UEAwwK
+MTYxNjU5NzIxNTEbMBkGA1UECgwS5b6u5L+h5ZWG5oi357O757ufMTAwLgYDVQQL
+DCfljJfkuqzlpKnlkozkv6HotKfov5Dku6PnkIbmnInpmZDlhazlj7gxCzAJBgNV
+BAYMAkNOMREwDwYDVQQHDAhTaGVuWmhlbjCCASIwDQYJKoZIhvcNAQEBBQADggEP
+ADCCAQoCggEBANxm5TFgalV7MtnB5kfQYO8DFysHqJTWCR8i65s9vmhwtT53FrOZ
+Zz3YSb3mZk0tbfw6KwMOhjrvjiIr6Q0Hegd0m1fIPyNU76OFxjnyCBD9kQ4qg8ES
+mGyZ2CMxiM7Quh4n51KcfIgugmb0uph3+oG2GiAkJLIEcacB7itdtZxEKADB/8q7
+csgAEJ23P8yAoxmczST91vtR35d6sy3qg4xlP1h7cl9fEZ1oe/DAzf8gHsTdcaD2
+q6u1A1WrWSWYgzKL1HbieaXHh/B34e+90v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QTC2BbBi/wF1vwZIOI15xX
+z9MM2kAjzpj0UviufnmY6OXm1lpINOEYss5HRAvBAoGBAOQIc+ItBhbLLMr8es/o
+XgFNktYyufPhL1CQi6es97w4W9P6/8Jxf8kVbdyVizArfVH2NkIFc2/+f3g9U1Dd
+2yJzEmAYaPV4nlth3bUs7UqX2o/dQbPXV4x3rrXc+VPXjomaOxQJG11XFPWj5RW2
+iLlIU4y35c0yYSOtjBPJzRtc
+-----END PRIVATE KEY-----

+ 18 - 0
database/wxpay/证书使用说明.txt

@@ -0,0 +1,18 @@
+欢迎使用微信支付!
+附件中的三份文件(证书pkcs12格式、证书pem格式、证书密钥pem格式),为接口中强制要求时需携带的证书文件。
+证书属于敏感信息,请妥善保管不要泄露和被他人复制。
+不同开发语言下的证书格式不同,以下为说明指引:
+    证书pkcs12格式(apiclient_cert.p12)
+        包含了私钥信息的证书文件,为p12(pfx)格式,由微信支付签发给您用来标识和界定您的身份
+        部分安全性要求较高的API需要使用该证书来确认您的调用身份
+        windows上可以直接双击导入系统,导入过程中会提示输入证书密码,证书密码默认为您的商户号(如:1900006031)
+    证书pem格式(apiclient_cert.pem)
+        从apiclient_cert.p12中导出证书部分的文件,为pem格式,请妥善保管不要泄漏和被他人复制
+        部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
+        您也可以使用openssl命令来自己导出:openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem
+    证书密钥pem格式(apiclient_key.pem)
+        从apiclient_cert.p12中导出密钥部分的文件,为pem格式
+        部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
+        您也可以使用openssl命令来自己导出:openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem
+备注说明:  
+        由于绝大部分操作系统已内置了微信支付服务器证书的根CA证书,  2018年3月6日后, 不再提供CA证书文件(rootca.pem)下载