add alipay ymkj

This commit is contained in:
lwl0608 2024-02-12 19:41:41 +04:00
parent 0b2d00d47e
commit 13261a3f8d
13 changed files with 206 additions and 15 deletions

View File

@ -9,6 +9,7 @@ type ConfigSt struct {
Crypto *configcenter.CryptoConfig `json:"crypto" yaml:"crypto"` // 账号相关加密
Wxpay *configcenter.WxpayClientConfig `json:"wxpay" yaml:"wxpay"` // 微信支付
Alipay *configcenter.AlipayClientConfig `json:"alipay" yaml:"alipay"` // 支付宝
AlipayMYTS *configcenter.AlipayClientConfig `json:"alipay_myts" yaml:"alipay_myts"` // 支付宝
Apollo *configcenter.ApolloConfig `json:"apollo" yaml:"apollo"` // Apollo
Media *configcenter.MediaConfig `json:"media" yaml:"media"` // 媒体配置
Dysmsapi *configcenter.DysmsapiConfig `json:"dysmsapi" yaml:"dysmsapi"` // 阿里云短信服务

View File

@ -253,6 +253,9 @@ func WithdrawSendVerifycode(ctx *gin.Context) {
// 提现申请
func WithdrawApply(ctx *gin.Context) {
ReplyErrorMsg(ctx, "提现申请暂时关闭")
return
req := ctx.MustGet("client_req").(*vasproto.WithdrawApplyReq)
if req.Diamonds < 2000 {
ReplyErrorMsg(ctx, "最低提现金额不能小于200元")

View File

@ -180,6 +180,7 @@ func (v *Vas) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (data
logger.Error("alipay AppPay fail, req: %v, appPayParam: %v, err: %v", util.ToJson(req), util.ToJson(appPayParam), err)
return
}
req.Oid3 = alipayCli.AppId
case vasproto.PayTypeAlipayH5:
alipayCli := alipaycli.GetDefaultAlipayClient()
wapPayParam := &alipaycli.WapPayParam{

View File

@ -128,7 +128,7 @@ func (s *Service) Init(c any) (err error) {
s.defaultMelody = melody.New()
err = alipaycli.Init(cfg.Alipay)
err = alipaycli.Init(cfg.AlipayMYTS)
if err != nil {
logger.Error("alipaycli.Init fail, cfg: %v, err: %v", util.ToJson(cfg.Alipay), err)
return

View File

@ -0,0 +1,43 @@
-----BEGIN CERTIFICATE-----
MIIDs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FICATE-----

View File

@ -8,7 +8,7 @@ log:
app:
app_name: "mix-test"
ip: "127.0.0.1"
# ip: "172.26.47.174"
# ip: "172.26.47.174"
port: 9999
mix_mongo:
@ -47,6 +47,14 @@ alipay:
appid: "2021004115647165"
private_key: "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCeA8ADj0arLzUK5B3R5bqbOkXm8TBe0dI6XpefxnHeNyksEFhQuWTFtQA550lGj/VMyNQC0R+gL6VK/5SdgonzxMx8bC+/1lIWrl3Q8F+JLsAUcNh6C+WzDw7m5YSrG9361f3+i/gPVC4GRTzx91qLdk1ySGZv/GpSVv49k9qtD83gRCbxJq5FY1QA83Wb5xkJoMwl+SlKvFLNxIIzPQh9DvDF+32FTsVQgm3sX1lsArTA4yp7Y4SG3A8mkOanidYX1KiUawMBWaDgZi1CMpQ+Zbb3w0C0txCeZ8ek5JeUw2EYHJ0awMnFE6+vPDm1LNJ0DodkvszGbmLvXQS2eMfVAgMBAAECggEABj1nq7xQshnfIlr3wn4r7E1UzVXg7x2iC6QIoMqZXIkZGyBaHHX1wMjxBVhY0GyG501W8fWIJi87e8az+7RX9kRjPtaW3CB+hV7FXabgXu51r1j1c3xcycFieUO/BXLIRUuGCDNGzHQqjRzW10dJUBCP5l9tjCaPnEjLKWtZS1QwhtmjmAJalC+oQLnhvlmURSWwyvIIgrqK82DZj5DFgXrxlah21Sou/N4xV/W/d0OkaouDxHtQ4Oy/yE/oc2z+vbcBcHrIt+r2g8gymKPdsDFyglUqZeNRlwYnifSUH7Bmn+1uiXAi86RlUdtCYngNUUNoOStB9oC7gidPHyeb0QKBgQDV58AFBOCHdG2gO+VvKiIpbquWMYTbmbRGmCai911G6zX8X/37nawKWZkyk4kIkrohZtwwL5s6AIlD5F9nRBp+Uk1QvlIYokD3vjUuVPyvpC3raASUvTs0WoWbq3gfPH5Qn5vS1C89CQ/68FC+89CYiexxwq7ybX86lzhYGpRXrwKBgQC9HE7e5Cr9akJrUuP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BAoGActiZR8VwOji3HjeaHNKgt4JhWHLLQGYUpxcHfmmlDRlswE8MRQsaz8Hmz0R+1wuOCsDZaZPuf8Bug1eqYtezZDWBmuYfUBzO5skEmco3bnAQSWob7oTjAgGBxISqD2onZe7tL1+nUSGYgyEhGJaJz8Q7MzvJgZlif16pI4f7H2w="
notify_url: ""
app_cert_path: "/Users/erwin/wishpalv2/service/etc/mix/alipaycert_myts/appCertPublicKey_2021004136623108.crt"
alipay_root_cert_path: "/Users/erwin/wishpalv2/service/etc/mix/alipaycert_myts/alipayRootCert.crt"
alipay_public_cert_path: "/Users/erwin/wishpalv2/service/etc/mix/alipaycert_myts/alipayCertPublicKey_RSA2.crt"
apollo:
app_id: "wishpal_live_service"
cluster: "dev"

View File

@ -42,6 +42,17 @@ alipay:
appid: "2021004115647165"
private_key: "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCtj6Nu2olEB8c8SDSANExaPbmk8LoYPEGB/APZDskhezO/w4OwPmG1Ak79XDpUUIihdmTZ8i2nBLhhRpFZGU4MMdil4X7a5nYHBm5dkGo3isIInn/qV7AYDqek4pGpMUPI6fbR05NWnUTZ+3AvMjTNBa979MgLyqS3jzpvuK6yXM5RinKVv8IF9KgthRKjH4LHyyRXBGu2cJSA5utjzFCL9KIu/T4XXZ09HOgz+JKPxXDj25Ob5eTtcBDsoJfXChcOvwCA7nxb1jzvGDrkqF36H1CC8KT1aoLRLisBsM+7sjEfNcB4RG5pGHSDGQJwZ0stGAhXf/fuWiLmI/zMOXODAgMBAAECggEAEL7CAuj8w16Iv20r+46QK0i3R42eNsZhf5wD9wYxK5TKal7/rppmLOObIWCrlATtGb7lfg2aj/mpnGEFlvYVDKImh+KYrZ/8lTLupQJQ7SjrDY/VQZPSPo/zZrohWZSSOKkyEg56samcwfc7XKJYa8t3odr9Df4wJDGibrL/z99xrJrz85le+NHBISXUyddS5ojuDNfGwE39wgLu52P74QYxv6s0xZKj2aALXaLXyTzF4ys34nVhhv75gXFtENiUet5/PVRYe7OE4cndcOP9WI3nXP5ojak8N4fY15S0YOm/0NZP8w6nWUemFjUNRXYRY42J+W+/myW8RIppaGuwkQKBgQDYH263Lh8C9EkjGA2po68LUTBhM2fT2L3batzHjXo0jvLT0IR88/9V7xhC3ZQZNcxQCK0xaCYfzFx3UV9veC1zeVRW0i/hyJ8B40w3WXCoGDiHgzQ/kcu/Iaw2qmJyhEFzOwAfrxIgco9EiZBaY7fXyy7YkZLGqXNFcLsuWR5qWwKBgQDNlc19CESIukT31Ap2QBe6t9YNXHZuKTePBRaIUCan3vZwPfZePLJQCgtoVhnCGoHZJ+ZlNhYri9x6DNLZpxCSHZNjccmqFGj3N7xWBqU38gu2dcPdMAxT1ERwf2gdlhgWAhVzD56hsWyrbP9YZACXy7TlevSj7s/5GaNaVuHT+QKBgQC2VZZ3zt51BJnrlLB6LVFRz/ZsGw1+qj5LLpYDeXXff7aYQzRzovsJigVC7GO0/TFZWGid5Us8ypI8TBejGJXn9TXVZdDlwPd9hUFY9QlZl82hbm0XMK7fms4K9KbIDJKXX/CTyoUVgPEkFpcF21lQIuhr6C0XlABfVmNlD+TcPwKBgHJuot2ov3UXsZH8/gHKNSsibswrHmS9HobGPz+K1al1Stk5NCxKPrqcjLL70gSf+ozkT7MggwCkLgnln2u1OV0Lh2HAEY9RIwgQhw2fT1GvseNS873no8T5j0rLMCnfxPJjIItWM2cvOhzFY/BQYaAcrElbwlaJdEvkgG+lkrgJAoGBAInYRdHo9V1exDUS0ucQuraoEtuvgOrqatnCbuNZ9EpgjFJxDbHXOIJYPvgfpyws4amdksNQL0Ux9+p+esJOS+JYYkE1nmCTCrfb6SNKr+PdeUteKtTiHJb4zJhGVC2Lk4uBg9AGa/d7j5apWw4RsZ/R1ky1S6KQUkqItbVrhC8l"
notify_url: "https://api.tiefen.fun/ext/vas/alipay_callback"
app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/appCertPublicKey_2021004115647165.crt"
alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/alipayRootCert.crt"
alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/alipayCertPublicKey_RSA2.crt"
alipay_myts:
appid: "2021004135664261"
private_key: "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCJL2Gj/UzinsEx2pYrpNMnqL0gZnbDH2Lk4WuBLcZBEdUcYL/2CJwuk48vH484i+kJx0a16PDWHkZOQDCdoWqRFah3RB+J2uToB3Qbi193dY2tyO4V1sqz2j0kiOAcuOzdGlogkP+XBFIl/RIS1oviEW++J9s1MP7QNF3t1HS9cTQcTqoapiZW0PpOigTjwWPaRUQDBRzvy7KXONrEuzZIQLUnEJ/ZViP49lanRYOIp+JvcHaNuOFBJWslS+DNbN+iEn3ZC/p2yUJVntsKV0HrgAzPPADAcQKC3+1w5NdVkc07qO1zW26+W4HHSxzmb5KREIwtQzhUs3b8zYaz09AfAgMBAAECggEAK6TpWXTSqx56tFOohwYPL4TddptimT05Bzw4KYbYlgcIV9jn+WxP0/maChHuTL0mTLgbZPBQ/q3vDCIb1WpvLu1HBXqk1gTP4onMhJ7Ypna9tlZAeK43GvUJksABHOIwaT9jAQ1gYzk6sV9MCrY7FpcZh9PCR6/owXCHmYyH/2S3NoqUSncbNK5+cPX3kJuPFToZxAmeJUw0U61uFwO62Zr5WvvBh1Bh2HVWtKQN8qLLuA7yq3E8+XmShrIebyLP87zmkydkUxSNViayG3YRJsaFS30v4zJW0nffjoANFQSYOPu9TzlWtflGPTyIm5+jmdoc7J6U5xVfN2WqaMMgQQKBgQDA776Ej+iVbv3c0xOdnb66+YhCLiRKq+wVnhH7FkEGpRXnHZCAzUyWHjBdv3OPasWTLeLo1y590QH00bcGF1ChQb1RFoXMHU3QGWIciPMBxJsVqMN31NtB1gXTSe9xmoUd3hRav8uZXjo6HBpjxrgsyYDunfgp3KtoWMin4TO4DwKBgQC2Bo1pIf2QXjCi8+gLNGPCYd2bFgimRgFukC0pvPF1PP2JIeufah0ix09mYMaAyqdFkgQUAchKNbyexHvRSnbquwiOIAj/yO7IRaqhdA4sTNA9L1Rri8/5u/ha86pI3SNC+p5kWgvFLT/ZmdHKSW9CsdtQLHW9x+KneFKLZknW8QKBgD0H2ZFfYGhcysserfbO3nWQ16xvoiVIyw5viSqO+JTchdgs/vfveUmHVS9ij3CPit4qxrt2zgsYoXDLIgU4PNY10GglIr/ViTbJwMJcA9rMUW6BiwuN9qmVxRP4MFkUUwWGqZOnVgU2zF5zY1mqk7n/J9zTdZvwZPxGEXshftW7AoGBAJEr8KQkg8IcHNYZiLtG8TkaLE9/5y4VLxcqzZo4IqrKFbrE3tKpIsuWAfE4xZf6CCYoKjB6q27kJKbLNaTZqrXSrSQM0KCPdEEtrsRNdvBF4t6pXL7ZJumZzJ1dMDYkh/bnQmPunOyJBh9Z2kNnBeE/UBZFHzJYtJ+0CsE6tzFBAoGActiZR8VwOji3HjeaHNKgt4JhWHLLQGYUpxcHfmmlDRlswE8MRQsaz8Hmz0R+1wuOCsDZaZPuf8Bug1eqYtezZDWBmuYfUBzO5skEmco3bnAQSWob7oTjAgGBxISqD2onZe7tL1+nUSGYgyEhGJaJz8Q7MzvJgZlif16pI4f7H2w="
notify_url: "https://api.tiefen.fun/ext/vas/alipay_callback"
app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/appCertPublicKey_2021004136623108.crt"
alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayRootCert.crt"
alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayCertPublicKey_RSA2.crt"
wxpay:
mchid: "1665016206"

View File

@ -49,6 +49,14 @@ alipay:
appid: "2021004115647165"
private_key: "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCeA8ADj0arLzUK5B3R5bqbOkXm8TBe0dI6XpefxnHeNyksEFhQuWTFtQA550lGj/VMyNQC0R+gL6VK/5SdgonzxMx8bC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mShrIebyLP87zmkydkUxSNViayG3YRJsaFS30v4zJW0nffjoANFQSYOPu9TzlWtflGPTyIm5+jmdoc7J6U5xVfN2WqaMMgQQKBgQDA776Ej+iVbv3c0xOdnb66+YhCLiRKq+wVnhH7FkEGpRXnHZCAzUyWHjBdv3OPasWTLeLo1y590QH00bcGF1ChQb1RFoXMHU3QGWIciPMBxJsVqMN31NtB1gXTSe9xmoUd3hRav8uZXjo6HBpjxrgsyYDunfgp3KtoWMin4TO4DwKBgQC2Bo1pIf2QXjCi8+gLNGPCYd2bFgimRgFukC0pvPF1PP2JIeufah0ix09mYMaAyqdFkgQUAchKNbyexHvRSnbquwiOIAj/yO7IRaqhdA4sTNA9L1Rri8/5u/ha86pI3SNC+p5kWgvFLT/ZmdHKSW9CsdtQLHW9x+KneFKLZknW8QKBgD0H2ZFfYGhcysserfbO3nWQ16xvoiVIyw5viSqO+JTchdgs/vfveUmHVS9ij3CPit4qxrt2zgsYoXDLIgU4PNY10GglIr/ViTbJwMJcA9rMUW6BiwuN9qmVxRP4MFkUUwWGqZOnVgU2zF5zY1mqk7n/J9zTdZvwZPxGEXshftW7AoGBAJEr8KQkg8IcHNYZiLtG8TkaLE9/5y4VLxcqzZo4IqrKFbrE3tKpIsuWAfE4xZf6CCYoKjB6q27kJKbLNaTZqrXSrSQM0KCPdEEtrsRNdvBF4t6pXL7ZJumZzJ1dMDYkh/bnQmPunOyJBh9Z2kNnBeE/UBZFHzJYtJ+0CsE6tzFBAoGActiZR8VwOji3HjeaHNKgt4JhWHLLQGYUpxcHfmmlDRlswE8MRQsaz8Hmz0R+1wuOCsDZaZPuf8Bug1eqYtezZDWBmuYfUBzO5skEmco3bnAQSWob7oTjAgGBxISqD2onZe7tL1+nUSGYgyEhGJaJz8Q7MzvJgZlif16pI4f7H2w="
notify_url: ""
app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/appCertPublicKey_2021004136623108.crt"
alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayRootCert.crt"
alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayCertPublicKey_RSA2.crt"
apollo:
app_id: "wishpal_live_service"
cluster: "dev"

View File

@ -81,9 +81,12 @@ type CryptoConfig struct {
// 支付宝客户端配置
type AlipayClientConfig struct {
Appid string `json:"appid" yaml:"appid"` // 商户id
PrivateKey string `json:"private_key" yaml:"private_key"` // 私钥
NotifyUrl string `json:"notify_url" yaml:"notify_url"` // 回调地址
Appid string `json:"appid" yaml:"appid"` // 商户id
PrivateKey string `json:"private_key" yaml:"private_key"` // 私钥
NotifyUrl string `json:"notify_url" yaml:"notify_url"` // 回调地址
AppCertPath string `json:"app_cert_path" yaml:"app_cert_path"`
AlipayRootCertPath string `json:"alipay_root_cert_path" yaml:"alipay_root_cert_path"`
AlipayPublicCertPath string `json:"alipay_public_cert_path" yaml:"alipay_public_cert_path"`
}
// Apollo配置

View File

@ -35,9 +35,9 @@ func Init(cfg *configcenter.AlipayClientConfig) (err error) {
alipayCli.SetNotifyUrl(cfg.NotifyUrl)
err = alipayCli.SetCertSnByPath(
"/app/wishpal-ironfan/etc/mix/alipaycert/appCertPublicKey_2021004115647165.crt",
"/app/wishpal-ironfan/etc/mix/alipaycert/alipayRootCert.crt",
"/app/wishpal-ironfan/etc/mix/alipaycert/alipayCertPublicKey_RSA2.crt",
cfg.AppCertPath,
cfg.AlipayRootCertPath,
cfg.AlipayPublicCertPath,
)
if err != nil {
logger.Error("SetCertSnByPath fail, cfg: %v, err: %v", util.ToJson(cfg), err)

View File

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"os"
"service/app/mix/conf"
"service/bizcommon/util"
"service/library/configcenter"
"service/library/idgenerator"
@ -11,12 +12,13 @@ import (
)
func TestMain(m *testing.M) {
cfg := &configcenter.AlipayClientConfig{
Appid: "2021004115647165",
PrivateKey: "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCtj6Nu2olEB8c8SDSAN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O0/TFZWGid5Us8ypI8TBejGJXn9TXVZdDlwPd9hUFY9QlZl82hbm0XMK7fms4K9KbIDJKXX/CTyoUVgPEkFpcF21lQIuhr6C0XlABfVmNlD+TcPwKBgHJuot2ov3UXsZH8/gHKNSsibswrHmS9HobGPz+K1al1Stk5NCxKPrqcjLL70gSf+ozkT7MggwCkLgnln2u1OV0Lh2HAEY9RIwgQhw2fT1GvseNS873no8T5j0rLMCnfxPJjIItWM2cvOhzFY/BQYaAcrElbwlaJdEvkgG+lkrgJAoGBAInYRdHo9V1exDUS0ucQuraoEtuvgOrqatnCbuNZ9EpgjFJxDbHXOIJYPvgfpyws4amdksNQL0Ux9+p+esJOS+JYYkE1nmCTCrfb6SNKr+PdeUteKtTiHJb4zJhGVC2Lk4uBg9AGa/d7j5apWw4RsZ/R1ky1S6KQUkqItbVrhC8l",
NotifyUrl: "",
cfg := new(conf.ConfigSt)
err := configcenter.LoadConfig("/Users/erwin/wishpalv2/service/etc/mix/mix-local.yaml", cfg)
if err != nil {
fmt.Printf("%v\n", err)
}
err := Init(cfg)
err = Init(cfg.AlipayMYTS)
if err != nil {
fmt.Println(err)
os.Exit(1)
@ -24,9 +26,9 @@ func TestMain(m *testing.M) {
m.Run()
}
func TestAlipayClient_AppPay(t *testing.T) {
func TestAlipayClient_WapPay(t *testing.T) {
cli := GetDefaultAlipayClient()
paramStr, err := cli.AppPay(context.Background(), &AppPayParam{
paramStr, err := cli.WapPay(context.Background(), &WapPayParam{
OutTradeNo: idgenerator.GenOrderId(),
Subject: "哈哈",
TotalAmount: 1,