From 6a7b3d970176002c16160652c0ff1266760ed755 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 1 Jun 2024 15:58:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(payment):=20=E4=BF=AE=E6=94=B9=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E9=85=8D=E7=BD=AE=E8=B7=AF=E5=BE=84=E5=8F=8A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=86=E7=B1=BB=E5=AD=90=E9=A1=B9=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store_category/StoreCategoryLists.php | 5 +- config/pay/ali/alipayCertPublicKey_RSA2.crt | 43 +++++++++ config/pay/ali/alipayRootCert.crt | 88 +++++++++++++++++++ .../ali/appCertPublicKey_2021004146699603.crt | 23 +++++ .../82fdc3426e3aeb9e5df91a9547ac5ef3.pem | 25 ++++++ .../c208f16ad08e6d2516e0b73e6d0ab8da.pem | 28 ++++++ config/payment.php | 10 +-- 7 files changed, 216 insertions(+), 6 deletions(-) create mode 100644 config/pay/ali/alipayCertPublicKey_RSA2.crt create mode 100644 config/pay/ali/alipayRootCert.crt create mode 100644 config/pay/ali/appCertPublicKey_2021004146699603.crt create mode 100644 config/pay/wechat/82fdc3426e3aeb9e5df91a9547ac5ef3.pem create mode 100644 config/pay/wechat/c208f16ad08e6d2516e0b73e6d0ab8da.pem diff --git a/app/admin/lists/store_category/StoreCategoryLists.php b/app/admin/lists/store_category/StoreCategoryLists.php index 00ba1ef1..c42126c4 100644 --- a/app/admin/lists/store_category/StoreCategoryLists.php +++ b/app/admin/lists/store_category/StoreCategoryLists.php @@ -47,7 +47,10 @@ class StoreCategoryLists extends BaseAdminDataLists implements ListsSearchInterf ->field(['id', 'pid', 'name', 'data', 'pic', 'sort']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) - ->select() + ->select()->each(function ($item) { + $item['is_children'] = StoreCategory::where('pid', $item->id)->count(); // 判断是否有子分类 + return $item->toArray(); + }) ->toArray(); } diff --git a/config/pay/ali/alipayCertPublicKey_RSA2.crt b/config/pay/ali/alipayCertPublicKey_RSA2.crt new file mode 100644 index 00000000..4f922090 --- /dev/null +++ b/config/pay/ali/alipayCertPublicKey_RSA2.crt @@ -0,0 +1,43 @@ +-----BEGIN CERTIFICATE----- +MIIDsjCCApqgAwIBAgIQICQFJaxJICk3sZeM5O23ADANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UE +BhMCQ04xFjAUBgNVBAoMDUFudCBGaW5hbmNpYWwxIDAeBgNVBAsMF0NlcnRpZmljYXRpb24gQXV0 +aG9yaXR5MTkwNwYDVQQDDDBBbnQgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IENs +YXNzIDIgUjEwHhcNMjQwNTI1MDIxNjQ1WhcNMjkwNTI0MDIxNjQ1WjCBkjELMAkGA1UEBhMCQ04x +LTArBgNVBAoMJOazuOW3numHjOa1t+WGnOS4muenkeaKgOaciemZkOWFrOWPuDEPMA0GA1UECwwG +QWxpcGF5MUMwQQYDVQQDDDrmlK/ku5jlrp0o5Lit5Zu9Kee9kee7nOaKgOacr+aciemZkOWFrOWP +uC0yMDg4ODQxMTE4NTE0OTc5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx3/qWQWp +PJAveD3AJaI6ZZ2z+voaUyRJPWLayo35zp57nrN+OepF+7bLpmlNJ2ybfLwgUS4GN4pnlLLh8OkL +gbZ4rCvR6CXsiGi6gKdZSRjdIi6SY8e7MhZu0/YuwD3X4Q3PYRQ6oa5OQ3V7BA6niq1sRKt3uZJ2 +GNT3VcvFd+ByLVTFF7loNzTpR+zuqegmXd/7oGHYC/jo0Pl7G3Cn0I0Tn9rCxCZg9Xd1vxNpRZfL +lPs68gFJtuzUMV+nVXydtbv6/0CzrBr0tt46YqftO70Nz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Y1QsYp5RKvj4SjFwCGKJ2+hPPe9UyyltxOidNtxjaknOCeBHytOr +-----END CERTIFICATE----- diff --git a/config/pay/ali/alipayRootCert.crt b/config/pay/ali/alipayRootCert.crt new file mode 100644 index 00000000..76417c53 --- /dev/null +++ b/config/pay/ali/alipayRootCert.crt @@ -0,0 +1,88 @@ +-----BEGIN CERTIFICATE----- +MIIBszCCAVegAwIBAgIIaeL+wBcKxnswDAYIKoEcz1UBg3UFADAuMQswCQYDVQQG +EwJDTjEOMAwGA1UECgwFTlJDQUMxDzANBgNVBAMMBlJPT1RDQTAeFw0xMjA3MTQw +MzExNTlaFw00MjA3MDcwMzExNTlaMC4xCzAJBgNVBAYTAkNOMQ4wDAYDVQQKDAVO +UkNBQzEPMA0GA1UEAwwGUk9PVENBMFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAE +MPCca6pmgcchsTf2UnBeL9rtp4nw+itk1Kzrmbnqo05lUwkwlWK+4OIrtFdAqnRT +V7Q9v1htkv42TsIutzd126NdMFswHwYDVR0jBBgwFoAUTDKxl9kzG8SmBcHG5Yti +W/CXdlgwDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwHQYDVR0OBBYEFEwysZfZ +MxvEpgXBxuWLYlvwl3ZYMAwGCCqBHM9VAYN1BQADSAAwRQIgG1bSLeOXp3oB8H7b +53W+CKOPl2PknmWEq/lMhtn25HkCIQDaHDgWxWFtnCrBjH16/W3Ezn7/U/Vjo5xI +pDoiVhsLwg== +-----END CERTIFICATE----- + +-----BEGIN CERTIFICATE----- +MIIF0zCCA7ugAwIBAgIIH8+hjWpIDREwDQYJKoZIhvcNAQELBQAwejELMAkGA1UE +BhMCQ04xFjAUBgNVBAoMDUFudCBGaW5hbmNpYWwxIDAeBgNVBAsMF0NlcnRpZmlj +YXRpb24gQXV0aG9yaXR5MTEwLwYDVQQDDChBbnQgRmluYW5jaWFsIENlcnRpZmlj +YXRpb24gQXV0aG9yaXR5IFIxMB4XDTE4MDMyMT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pV +nJbMqqCw6Bz1kehnoPst9pkr0V9idOwU2oyS47/HjJXk9Rd5a9xfwkPO88trUpz5 +4GmmwspDXjVFu9L0eFaRuH3KMha1Ak01citbF7cQLJlS7XI+tpkTGHEY5pt3EsQg +wykfZl/A1jrnSkspMS997r2Gim54cwz+mTMgDRhZsKK/lbOeBPpWtcFizjXYCqhw +WktvQfZBYi6o4sHCshnOswi4yV1p+LuFcQ2ciYdWvULh1eZhLxHbGXyznYHi0dGN +z+I9H8aXxqAQfHVhbdHNzi77hCxFjOy+hHrGsyzjrd2swVQ2iUWP8BfEQqGLqM1g +KgWKYfcTGdbPB1MCAwEAAaNjMGEwHQYDVR0OBBYEFG/oAMxTVe7y0+408CTAK8hA +uTyRMB8GA1UdIwQYMBaAFG/oAMxTVe7y0+408CTAK8hAuTyRMA8GA1UdEwEB/wQF +MAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBLnUTfW7hp +emMbuUGCk7RBswzOT83bDM6824EkUnf+X0iKS95SUNGeeSWK2o/3ALJo5hi7GZr3 +U8eLaWAcYizfO99UXMRBPw5PRR+gXGEronGUugLpxsjuynoLQu8GQAeysSXKbN1I +UugDo9u8igJORYA+5ms0s5sCUySqbQ2R5z/GoceyI9LdxIVa1RjVX8pYOj8JFwtn +DJN3ftSFvNMYwRuILKuqUYSHc2GPYiHVflDh5nDymCMOQFcFG3WsEuB+EYQPFgIU +1DHmdZcz7Llx8UOZXX2JupWCYzK1XhJb+r4hK5ncf/w8qGtYlmyJpxk3hr1TfUJX +Yf4Zr0fJsGuv +-----END CERTIFICATE----- \ No newline at end of file diff --git a/config/pay/ali/appCertPublicKey_2021004146699603.crt b/config/pay/ali/appCertPublicKey_2021004146699603.crt new file mode 100644 index 00000000..14bfbaeb --- /dev/null +++ b/config/pay/ali/appCertPublicKey_2021004146699603.crt @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIIEoDCCA4igAwIBAgIQICQFJYrgve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g5LmNybDBgBggrBgEFBQcBAQRUMFIwKAYIKwYBBQUHMAKGHGh0dHA6Ly9jYS5h +bGlwYXkuY29tL2NhNi5jZXIwJgYIKwYBBQUHMAGGGmh0dHA6Ly9jYS5hbGlwYXkuY29tOjgzNDAv +MA0GCSqGSIb3DQEBCwUAA4IBAQA9DYzEMnOGG9uddKhyS7XyJiFRoP7GXIvwj4IjLn/hQ/UbD2DB +MJUTDSkFIcyEU9w2zCD7atgKZNYCscIACnFmz91op1Oo+ohMTswUNGHMZCGYqSy3msA1Okuxc8mE +yvHRwJdU7qnEsSOD7hrKw059AFcDW3okDSKYvr8tJNC3MNyGY4dd6YxouE3738HtlYf/iGkN0ntQ +NEayluq3tRI+XE6AYrU6FYvXwWAGur/UqQTyKYAT0j2UE5VBfwC7/qpFBK+13oe8JvqdgLJY6BtB +nAnLaP1Z5RY5JnmUgzXD/pCkIZu5U3WS9hFcAxCrSiZmU4+CVRTTfY7d/DU89epc +-----END CERTIFICATE----- \ No newline at end of file diff --git a/config/pay/wechat/82fdc3426e3aeb9e5df91a9547ac5ef3.pem b/config/pay/wechat/82fdc3426e3aeb9e5df91a9547ac5ef3.pem new file mode 100644 index 00000000..cd431dc3 --- /dev/null +++ b/config/pay/wechat/82fdc3426e3aeb9e5df91a9547ac5ef3.pem @@ -0,0 +1,25 @@ +-----BEGIN CERTIFICATE----- +MIIEKDCCAxCgAwIBAgIUYAGG3fxXIyJ8FvMcIWFHBYwI1oUwDQYJKoZIhvcNAQEL +BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT +FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDVQQDExJUZW5wYXkuY29tIFJvb3Qg +Q0EwHhcNMjMwOTI1MDE1NjI1WhcNMjgwOTIzMDE1NjI1WjCBgTETMBEGA1UEAwwK +MTY1NDI3NDg2NzEbMBkGA1UECgwS5b6u5L+h5ZWG5oi357O757ufMS0wKwYDVQQL +DCTms7j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0FeA+a/06YhndX9rHx3ryD58RYBs +nkuymMJUPd5+A5Xm +-----END CERTIFICATE----- \ No newline at end of file diff --git a/config/pay/wechat/c208f16ad08e6d2516e0b73e6d0ab8da.pem b/config/pay/wechat/c208f16ad08e6d2516e0b73e6d0ab8da.pem new file mode 100644 index 00000000..9b0615a0 --- /dev/null +++ b/config/pay/wechat/c208f16ad08e6d2516e0b73e6d0ab8da.pem @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDU3k1HupOebI/o +5RDdcID8o0cPEjEPHX+cXbej/V3tvcEftdGB7Sa6aP/1kYOjDQ5N2pEKCKtfjW+g +A3VKcEyqXk5Q2icPTLT+bBx5X3tylBw1lKtdvBaPc4C16GeAVUNGIm6QSYHk6VFQ +TcTOzZUzARsC/QZCtL9+2q2JH1LidFQnBo+ZDnxZx+PwmZTgMEo/xWL0Agya5z9i +212C6Dm53+RmgDjMG7zQCb5C5i1yALn1oD617uTsBmQtCDitNSFYy0IVuk/lT8sn +iliuMYfRS0P75DbGbBsJaZDdn66fRd/GQnk3Chanj9+lhFORNFghd09s7m8DW5ee +gqRDaw0DAgMBAAECggEARE6Jcej3EbE4hL1sqgI+AdPLK5Tk1TrcBis0kJTvHSj0 +3d4UOqME+HBVIlHtcdbwrh7ix9t8Uo8qMKirbJWYpFrauqsmOYydz76VbIUtMdlB +LBhm3Q9MFgA0XysSe2XgzpKh8/8ChZgxFZm++7WQmOtT5aOX7LPfdy9o3EWG7U9c +rUOQ/5ykLcywfonw88AQEf5MoVbo6pFSDxHWn8CXLT2ex4O7KY1GHU+zQDgT+19w +fqrGuJYclWVTk1jmpZ+dK8Qs2HhUo1h5Ls65GagvXYR/iZ/qtPEffhx3K1YzxIOU +Vi/H8H69//afUH1wxomcDaa0kL1AdEG3ILoPuNZOEQKBgQD7h8Haf9vNcxevrYRO +0enghp+mS84+hXppEIUcRdSoLUFLCsHOsOWoGquuliZYaxaiEzUaQetB4sT+cGJJ +LgNyZv+QtJ5pm2Bf/GmS93mi5Iy9ingKEFdeMW/fe6kxVGxNo3tlhV0Bwb/ntXJp +fhXCJ0CsXU5mrFsi5XAYRAxcpQKBgQDYpqqqflYcA+rf9ey+VGEyKiIswE+IPaqe +wkgpgYwk0kOkOjBF9gFHMf9ruomWH4kTTlqeaTHCNItGtjDOYTJISMSmPsp49D9d +civZ1+kuy3C57wf2Ns0hWp4QCwGHddppoG1DKmzAxelMHQD6db26xgGJCq9hZ3Ut +0k4RWtzKhwKBgFciRU5bApreZvMtyerAHyPvnvitxAm2lZw149bSfgOwgbDsTg07 +DKO6cYTucOQqXNHSk4/ADC5rz1BRQEsXjIwiECBh4Yq2D6HQwAXwgwuh3vt+L21V +Ed8IgzfJD+iN1WLj4khd9cU5CDDNk4/l5MW4cVgEjrdUt9GT58wQLrQdAoGAVgGs +JOzsgEip2GkHp/NVdpW1ZXCe4iYg8s+L2DZejUuPoMWc3lkv3rShgoHWFuvD/g8P ++G0oXMGBPPwc2gFJ9do1fw3UUTodYZpugBevsWz//kA/N+Y/fus7boEABWeq4l3W +omBYNhsbZ6Tn+4X8YQY0G9RLFW793MftSAR7PEcCgYAh99cfwfNV36/nFIt8E18w +yzWb5HFLZ29eFjXgbmOaq4h2+P5Wor+E2v6OD154kUWm5oYNiPtBs0GHrvtjl2TW +tuBjU58+ejl2Ae6678Yxj+IlH8NRJf3pR6gDST/YHhVRv8TuBFeKT+nZ97t6HsJT +GE1Me2UOnbIHGImqvDlOvA== +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/config/payment.php b/config/payment.php index 9b81ce6f..7c5ba66c 100644 --- a/config/payment.php +++ b/config/payment.php @@ -13,11 +13,11 @@ return [ // 必填-应用私钥 字符串或路径 'app_secret_cert' => 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCktKWIoqSZ8BoSpALMsvTEsEQ1kF++wBeneams0Q17LvqGDBgiG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OzkVF4kmUZQm9Slt21d/UjKG30SDuHAJu6hd5ohyISC/S/6skfeiK9HoS0s/DsrDiJYrhZxUr72uux2Mjx3SMBgQKBgQCX88qoS8Eo5rDO5ANpcviJ/flfgCtscFYUEqQ1mHixOH86r5njup62x/2UV6yla+p7SGMBfSBfNZlFK7+ycLDT8Agr8o/csqrVmQ5PJAmwXf0zP3D6Gb3mj9zq6GuERFtAI1+hQ6Y67ZbQdfwWk7kujnLaz0QCXzwzzfuSkYsgHQKBgFadCh1lJYQcpCjEDD50QAdbfzhVJRSYVEQhj2ekQ+w7hEndXiwptucPt8vs39qRfyXwoez2dWbK9ZUmU3/DTZBtL/1OmpDV2yPYi+xpipgzETB44mQnpcAcvaxU59j0oZQxXsWXHKNfOBzO2KgrReHnY7oUurPPq1A76yEcGmtn', // 必填-应用公钥证书 路径 - 'app_public_cert_path' => runtime_path() . '/cert/ali/appCertPublicKey_2021004146699603.crt', + 'app_public_cert_path' => config_path('pay') . '/ali/appCertPublicKey_2021004146699603.crt', // 必填-支付宝公钥证书 路径 - 'alipay_public_cert_path' => runtime_path() . '/cert/ali/alipayCertPublicKey_RSA2.crt', + 'alipay_public_cert_path' => config_path('pay') . '/ali/alipayCertPublicKey_RSA2.crt', // 必填-支付宝根证书 路径 - 'alipay_root_cert_path' => runtime_path() . '/cert/ali/alipayRootCert.crt', + 'alipay_root_cert_path' => config_path('pay') . '/ali/alipayRootCert.crt', // 选填-同步回调地址 'return_url' => 'https://erp.lihaink.cn/api/pay/alipay_return', // 选填-异步回调地址 @@ -37,9 +37,9 @@ return [ // 必填-商户秘钥 'mch_secret_key' => '7E00D167C9793006C93F4FB4CF65BCC2', // 必填-商户私钥 字符串或路径 - 'mch_secret_cert' => runtime_path() . '/cert/c208f16ad08e6d2516e0b73e6d0ab8da.pem', + 'mch_secret_cert' => config_path('pay') . '/wechat/c208f16ad08e6d2516e0b73e6d0ab8da.pem', // 必填-商户公钥证书路径 - 'mch_public_cert_path' => runtime_path() . '/cert/82fdc3426e3aeb9e5df91a9547ac5ef3.pem', + 'mch_public_cert_path' => config_path('pay') . '/wechat/82fdc3426e3aeb9e5df91a9547ac5ef3.pem', // 必填 'notify_url' => 'https://erp.lihaink.cn/api/pay/notifyMnp', // 选填-公众号 的 app_id