From bdfd4c6b9cb11f6beef1295b9bdb9ee522b28ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BF=8A=E5=AE=8F?= <389838709@qq.com> Date: Fri, 9 Aug 2024 17:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/third/paymentService/payment_service.go | 17 +++---- app/third/paymentService/payment_test.go | 54 ++++++++++----------- 2 files changed, 35 insertions(+), 36 deletions(-) diff --git a/app/third/paymentService/payment_service.go b/app/third/paymentService/payment_service.go index b6f578f..4d53f72 100644 --- a/app/third/paymentService/payment_service.go +++ b/app/third/paymentService/payment_service.go @@ -9,7 +9,6 @@ import ( "context" "encoding/json" "fmt" - "github.com/qit-team/snow-core/log/logger" "strconv" ) @@ -48,7 +47,7 @@ type PayOrderResponse struct { // PaymentService 统一发起支付 func PaymentService(c context.Context, payOrderRequest PayOrderRequest) PayOrderResponse { - logger.Info(c, "PaymentService 收到支付请求", payOrderRequest) + //logger.Info(c, "PaymentService 收到支付请求", payOrderRequest) var err error var info string var payOrderResponse PayOrderResponse @@ -73,7 +72,7 @@ func PaymentService(c context.Context, payOrderRequest PayOrderRequest) PayOrder ErrorMsg: err.Error(), } logStatus = common.THIRD_ORDER_LOG_STATUS_FAIL - } else { + } else if payOrderResponse.ErrorMsg == "" { payOrderResponse = PayOrderResponse{ Code: payCommon.PAY_SUCCESS_CODE, ErrorMsg: "", @@ -142,7 +141,7 @@ func PayOrderQuery(c context.Context, payOrderQueryRequest PayOrderQueryRequest) ErrorMsg: err.Error(), } logStatus = common.THIRD_ORDER_LOG_STATUS_FAIL - } else { + } else if payOrderQueryResponse.ErrorMsg == "" { payOrderQueryResponse = PayOrderQueryResponse{ Code: payCommon.PAY_SUCCESS_CODE, Result: info, @@ -188,7 +187,7 @@ type OrderRefundInfo struct { // OrderRefund 订单退款 func OrderRefund(c context.Context, orderRefundRequest OrderRefundRequest) OrderRefundResponse { - logger.Info(c, "PaymentService 收到退款请求", orderRefundRequest) + //logger.Info(c, "PaymentService 收到退款请求", orderRefundRequest) var err error var info OrderRefundInfo var orderRefundResponse OrderRefundResponse @@ -212,7 +211,7 @@ func OrderRefund(c context.Context, orderRefundRequest OrderRefundRequest) Order ErrorMsg: err.Error(), } logStatus = common.THIRD_ORDER_LOG_STATUS_FAIL - } else { + } else if orderRefundResponse.ErrorMsg == "" { orderRefundResponse = OrderRefundResponse{ Code: payCommon.PAY_SUCCESS_CODE, Result: info, @@ -269,7 +268,7 @@ func OrderRefundQuery(c context.Context, orderRefundQueryRequest OrderRefundQuer ErrorMsg: err.Error(), } logStatus = common.THIRD_ORDER_LOG_STATUS_FAIL - } else { + } else if orderRefundQueryResponse.ErrorMsg == "" { orderRefundQueryResponse = OrderRefundQueryResponse{ Code: payCommon.PAY_SUCCESS_CODE, Result: info, @@ -307,7 +306,7 @@ type OrderCloseInfo struct { // OrderClose 关闭订单 func OrderClose(c context.Context, orderCloseRequest OrderCloseRequest) OrderCloseResponse { - logger.Info(c, "PaymentService 收到关闭订单请求", orderCloseRequest) + //logger.Info(c, "PaymentService 收到关闭订单请求", orderCloseRequest) var err error var info OrderCloseInfo var orderCloseResponse OrderCloseResponse @@ -331,7 +330,7 @@ func OrderClose(c context.Context, orderCloseRequest OrderCloseRequest) OrderClo ErrorMsg: err.Error(), } logStatus = common.THIRD_ORDER_LOG_STATUS_FAIL - } else { + } else if orderCloseResponse.ErrorMsg == "" { orderCloseResponse = OrderCloseResponse{ Code: payCommon.PAY_SUCCESS_CODE, Result: info, diff --git a/app/third/paymentService/payment_test.go b/app/third/paymentService/payment_test.go index 12d576a..04ab37e 100644 --- a/app/third/paymentService/payment_test.go +++ b/app/third/paymentService/payment_test.go @@ -56,9 +56,32 @@ func TestMarketSendRequest_Market(t *testing.T) { //} //PaymentService(c, request) - request := PayOrderQueryRequest{ - OrderId: 12312312312, - PayChannel: 1, + //request := PayOrderQueryRequest{ + // OrderId: 12312312312, + // PayChannel: 1, + // Ali: AliPay{ + // AppId: "9021000139661858", + // PrivateKey: "MIIEogIBAAKCAQEAiJ6MGX+/0oDMbVcFOew70ukNft55HvBmfD2+oBMMZ7ZfvPXGTQYtsA/0Q8BY9CMQh/Oa42jXiM7Upn3STMD7ZcaNtdJcUItQln1xfjKBQHfl2TPnvyVpOP96QsJQCOga5ThI9Nuv6R7nVsO+4HvbJ4m8fuRQboBwhf88pqfDMbvjd6WW7ZcqO7GoFODmbIsGZrakMMJ5taMY+gYZhPGlZSMUFq7NzGIcw4rdpRE4j24nUwbkIC6S5pcbLPz1j6gbp4u9FYXPNhq09P9m8ho/UctKPYA/Awx3sh4STTCUFND0hSBRS88IF7Ta5IEkMx8mpekh4mXH/DMNu6SnbuoV4wIDAQABAoIBAG8aAHT8HtLhS13f1rA0HLJ4NDFoWrd+aNnAnLUwyHXPKixQ8uLQk3cKgmpWkgB4Q4lL4jntmNn42ZZL3CnvBoLN5ZBncgtOQEsh2Jn4GISE/LaWL3CSy+8+U/7WZp/XoYenLi1yOqwqJZe5uBB2qNKOgGvw4Df824Uc/AXLiEF4ik07fSxGUmLbri5OASJqyMHu4iFYGd+Vc1ulafBDoSVuj5UPqNINba6YdJUU32P9xvkQkjosdjlf5nkzDXqDmNiXfee4mhFD1lpQvpRrZ2xRB78PA6Lzm9agrXnjbrVcaAzqY+J3TtViLZuN4iDBOo9niLEGQcSPDS6cdoMx2YECgYEAv+PxOsk3O0nxAD+VxKmUxtCZBnESz+ZlWblWbaOO02aSKT2E6bFMxbcLez5xiZUx+av7yb/RBRGQNbNeybHcL+KgfTywYAX7fEMGQjBrROlzQq29JWu+tVprnmG5108VWjbkQnEK95bTZKgQpiqbG3rSVnKHxhhQzqPr+KJnWP0CgYEAtkNdT7s40jvZUhfeAI8HQZmw7Og3QaK/AEQGkPRNwW1kAruAcEdl4lO2KnaQXj0I3TsHDWnTI3A+AFSHU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yg7BW\n-----END CERTIFICATE-----\n", + // }, + // Wx: WxPay{ + // AppId: "wx0a9d03516e77308c", + // MchId: "1647084265", + // SerialNo: "318457037183AFED5B9A55C129007D9EFE737B18", + // ApiV3Key: "lsxdtvR2vOgGBu03u6wA0j9RnX5IP1Yq", + // PrivateKey: "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC7TG44IkSH7c/c\nFJ0+dTvcA9uYPdyIRFGRmtRBVEMP0S9q9MoVAuEeQ0/yxLmTmKb7/kAwShqNbwDU\niIm0y9b1jMpl1NM3lvEG5+LL1xMYKIRh2iOInoZSYpX46l5ME7FQwUq4GyoTg+5o\naIUKHXtzldzUR8/MXnpljYKL1oKb04vA627EMiUNm+Hajt4elhm3UXmOva1ohir7\nb69NEeleM4wjCxG+7ueuFIXlWqeAmXjYKb36C6xOeLbdlQeNg3BSEXmGFI5mDxM4\nlGf+zVWc5KcH9YVsq5D0UIziVHMUC91Za48fUgYjFb3Dho00IEjUqQwKuzCbZtkq\nD9mJ/0FRAgMBAAECggEAc4FO948qdClUZoTP9BSYNbarVdfQiLiZFRJGk4NDWB3J\nAEy10v9TlTYtt6laSIt7byv8qcsJVO9/s5IAWl7a0dNhfishlsafHYMjelHIlL1n\n5nCAOWCJtYTWuArQ3FnIn+SUD7Ww3RgfjoPmh7Zmy4FADim7HG2nTblXKKXBJhbg\nHI6X+7ltmZqMwG6Qb1Phq3WHPm4/Z0z+C3xs/2npikTMb8kY51GX54qJNamBO9G1\nY1pFsxwQ9Ep0V3BwX2Q+YJJFdBHeDVD0UvbO2GekArMgN48+OvkHBqajWFn1xOEB\n6Wp+j8qUue6fMcDFkq7ZY7hfEoBlZ+ZbCJNslYNiAQKBgQDzj/4q8+ChIWkLg5BZ\npaMaMV/goVrCH7HaF3DLxKTYKPWuRBpvW9xgx4tDDERhEZhDGgDoT+xSXdCTtYML\nWMBcvQnSn7JHSHa7CoAu/OwLMtKXSKtU3GO6nQeaifXL+Qi2U3JbIvwN34b7pzW0\n16a95qWVyXKlKM6dh0RKpit2lQKBgQDE3OtPgSiDMauZ+Cn9Sk1+aZ9jfizQZIUH\nkFGifsEgr/txTN2Gt4dIT+up0HSVpwfKLsHPS9wIJs38bivhWblchVEw5J1ZXPFQ\n27cs88B6LySw0dbsMRIceXQOhpm/118hr/QV0h4za99FP/1kGHGPrT4FsSw4FrNg\nBqF3hhUczQKBgBsspZ8FNrrDj4TJWQGniVsSxy+40Pd3sdAzbVJOzlWPvFmFH63t\nAdmKae9BHx/1ZpeV/yPsRuGptevFBKnvbQbr0Hy/dJSfcR/NPCAB+BQHx5c5dGQz\ncq0PeBm16sanMmGlTcz9SkIB/n11Wnii1ue5JCBiKXhj5SmOPgBWKeNBAoGARVZ2\nfwND7KmTAmEZEQCZuNuk6xsm16OAA4D+b9hrV4MEcgybvfZobLzRiXdFiOxS3xCG\n7OeQMULRrIZ1aCL9GaxPQ4RSM4Z77Hnm06tq8N4n8yuFop1J/sN8cB1Si/JkrG3X\n79OZFY16D18Rda7yWKOxQ7n6lCrStRDA0GNmjkUCgYEAnCd1PVJJ+VX7CXJ6gz7H\n0VXLAD+GUQzlnSzv6mgGWzn0acpVz9Q+o1qpxgNL/ehLTz+v3Nr7hexl77pUDVfJ\nS1zBopXaKx330eAJm4d0bKgKndHyfr7VJ6f5H/WezX7Q5jkm32D9/GPhJCfqBp3q\nWA/g+9g+fwkc78QKuQl7M68=\n-----END PRIVATE KEY-----\n", + // }, + //} + //PayOrderQuery(c, request) + + request := OrderRefundRequest{ + OrderId: 12312312312, + PayChannel: 2, + RefundOrderId: 123133333333, + RefundReason: "不合适", + RefundAmount: 1, Ali: AliPay{ AppId: "9021000139661858", PrivateKey: "MIIEogIBAAKCAQEAiJ6MGX+/0oDMbVcFOew70ukNft55HvBmfD2+oBMMZ7ZfvPXGTQYtsA/0Q8BY9CMQh/Oa42jXiM7Upn3STMD7ZcaNtdJcUItQln1xfjKBQHfl2T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3ILSFw47+mxMKR0Ge2r+G0/mremFTve4pD6VuSQKBgAMdY5rZOD9fhndAsSqRRy530e46ibc1cM4wW2xewHVtySfCzI8eqT8U7ygKnqz9ngkp2RUBmfohEO4wg597uByDHUiGz9/7edRCUJrNvj8tWeTl+bVD99x7nQVNOCsPit0s8OS4CfAxeG10UcN4CwasDokoLgWW8jupyBeB/ptBAoGAf/YJGqYGUogmL1otFf82BwglNfXHjdiFwqC1BLwlIuyOQDQE8nMPF6yKDv6xXY1Zm+zH5RBrIOcLRdF08jSUCfPV2yn2U2tWsC2MSq4n+y4pxqwsQgUXfqrabX3Zf1EEFf329ZhZHwrhDW3PshjEYuz8Yei8gK+44KBk0ZKJCVA=", @@ -66,32 +89,9 @@ func TestMarketSendRequest_Market(t *testing.T) { AlipayRootCert: "-----BEGIN CERTIFICATE-----\nMIIBszCCAVegAwIBAgIIaeL+wBcKxnswDAYIKoEcz1UBg3UFADAuMQswCQYDVQQG\nEwJDTjEOMAwGA1UECgwFTlJDQUMxDzANBgNVBAMMBlJPT1RDQTAeFw0xMjA3MTQw\nMzExNTlaFw00MjA3MDcwMzExNTlaMC4xCzAJBgNVBAYTAkNOMQ4wDAYDVQQKDAVO\nUkNBQzEPMA0GA1UEAwwGUk9PVENBMFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAE\nMPCca6pmgcchsTf2UnBeL9rtp4nw+itk1Kzrmbnqo05lUwkwlWK+4OIrtFdAqnRT\nV7Q9v1htkv42TsIutzd126NdMFswHwYDVR0jBBgwFoAUTDKxl9kzG8SmBcHG5Yti\nW/CXdlgwDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAQYwHQYDVR0OBBYEFEwysZfZ\nMxvEpgXBxuWLYlvwl3ZYMAwGCCqBHM9VAYN1BQADSAAwRQIgG1bSLeOXp3oB8H7b\n53W+CKOPl2PknmWEq/lMhtn25HkCIQDaHDgWxWFtnCrBjH16/W3Ezn7/U/Vjo5xI\npDoiVhsLwg==\n-----END CERT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s6Xsa2ZNcyil/iKNB5MbGll8LRAxntsKvZZj6vUTMb705gYgm\nVUMILwi/ZxKTQqBtkT/kQQ5y6nOZsj7XI5rYdz6qqOROrpvS/d7iypdHOMIM9Iz9DlL1mrCykbBi\nt25y+gTeXmuisHUwqaRpwtCGK4BayCqxRGbNipe6W73EK9lBrrzNtTr9NaysesT/v+l25JHCL9tG\nwpNr1oWFzk4IHVOg0ORiQ6SUgxZUTYcCAwEAAaMSMBAwDgYDVR0PAQH/BAQDAgTwMA0GCSqGSIb3\nDQEBCwUAA4IBAQBWThEoIaQoBX2YeRY/I8gu6TYnFXtyuCljANnXnM38ft+ikhE5mMNgKmJYLHvT\nyWWWgwHoSAWEuml7EGbE/2AK2h3k0MdfiWLzdmpPCRG/RJHk6UB1pMHPilI+c0MVu16OPpKbg5Vf\nLTv7dsAB40AzKsvyYw88/Ezi1osTXo6QQwda7uefvudirtb8FcQM9R66cJxl3kt1FXbpYwheIm/p\nj1mq64swCoIYu4NrsUYtn6CV542DTQMI5QdXkn+PzUUly8F6kDp+KpMNd0avfWNL5+O++z+F5Szy\n1CPta1D7EQ/eYmMP+mOQ35oifWIoFCpN6qQVBS/Hob1J/UUyg7BW\n-----END CERTIFICATE-----\n", }, - Wx: WxPay{ - AppId: "wx0a9d03516e77308c", - MchId: "1647084265", - SerialNo: "318457037183AFED5B9A55C129007D9EFE737B18", - ApiV3Key: "lsxdtvR2vOgGBu03u6wA0j9RnX5IP1Yq", - PrivateKey: "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC7TG44IkSH7c/c\nFJ0+dTvcA9uYPdyIRFGRmtRBVEMP0S9q9MoVAuEeQ0/yxLmTmKb7/kAwShqNbwDU\niIm0y9b1jMpl1NM3lvEG5+LL1xMYKIRh2iOInoZSYpX46l5ME7FQwUq4GyoTg+5o\naIUKHXtzldzUR8/MXnpljYKL1oKb04vA627EMiUNm+Hajt4elhm3UXmOva1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EZEQCZuNuk6xsm16OAA4D+b9hrV4MEcgybvfZobLzRiXdFiOxS3xCG\n7OeQMULRrIZ1aCL9GaxPQ4RSM4Z77Hnm06tq8N4n8yuFop1J/sN8cB1Si/JkrG3X\n79OZFY16D18Rda7yWKOxQ7n6lCrStRDA0GNmjkUCgYEAnCd1PVJJ+VX7CXJ6gz7H\n0VXLAD+GUQzlnSzv6mgGWzn0acpVz9Q+o1qpxgNL/ehLTz+v3Nr7hexl77pUDVfJ\nS1zBopXaKx330eAJm4d0bKgKndHyfr7VJ6f5H/WezX7Q5jkm32D9/GPhJCfqBp3q\nWA/g+9g+fwkc78QKuQl7M68=\n-----END PRIVATE KEY-----\n", - }, } - PayOrderQuery(c, request) - //request := OrderRefundRequest{ - // OrderId: 12312312312, - // PayChannel: 2, - // RefundOrderId: 123133333333, - // RefundReason: "不合适", - // RefundAmount: 1, - // Ali: AliPay{ - // AppId: "9021000139661858", - // PrivateKey: "MIIEogIBAAKCAQEAiJ6MGX+/0oDMbVcFOew70ukNft55HvBmfD2+oBMMZ7ZfvPXGTQYtsA/0Q8BY9CMQh/Oa42jXiM7Upn3STMD7ZcaNtdJcUItQln1xfjKBQHfl2TPnvyVpOP96QsJQCOga5ThI9Nuv6R7nVsO+4HvbJ4m8fuRQboBwhf88pqfDMbvjd6WW7ZcqO7GoFODmbIsGZrakMMJ5taMY+gYZhPGlZSMUFq7NzGIcw4rdpRE4j24nUwbkIC6S5pcbLPz1j6gbp4u9FYXPNhq09P9m8ho/UctKPYA/Awx3sh4STTCUFND0hSBRS88IF7Ta5IEkMx8mpekh4mXH/DMNu6SnbuoV4wIDAQABAoIBAG8aAHT8HtLhS13f1rA0HLJ4NDFoWrd+aNnAnLUwyHXPKixQ8uLQk3cKgmpWkgB4Q4lL4jntmNn42ZZL3CnvBoLN5ZBncgtOQEsh2Jn4GISE/LaWL3CSy+8+U/7WZp/XoYenLi1yOqwqJZe5uBB2qNKOgGvw4Df824Uc/AXLiEF4ik07fSxGUmLbri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k4IHVOg0ORiQ6SUgxZUTYcCAwEAAaMSMBAwDgYDVR0PAQH/BAQDAgTwMA0GCSqGSIb3\nDQEBCwUAA4IBAQBWThEoIaQoBX2YeRY/I8gu6TYnFXtyuCljANnXnM38ft+ikhE5mMNgKmJYLHvT\nyWWWgwHoSAWEuml7EGbE/2AK2h3k0MdfiWLzdmpPCRG/RJHk6UB1pMHPilI+c0MVu16OPpKbg5Vf\nLTv7dsAB40AzKsvyYw88/Ezi1osTXo6QQwda7uefvudirtb8FcQM9R66cJxl3kt1FXbpYwheIm/p\nj1mq64swCoIYu4NrsUYtn6CV542DTQMI5QdXkn+PzUUly8F6kDp+KpMNd0avfWNL5+O++z+F5Szy\n1CPta1D7EQ/eYmMP+mOQ35oifWIoFCpN6qQVBS/Hob1J/UUyg7BW\n-----END CERTIFICATE-----\n"), - // }, - //} - - //OrderRefund(c, request) + OrderRefund(c, request) //request := OrderRefundQueryRequest{ // RefundOrderId: 123133333333,