add tifenzone
This commit is contained in:
parent
028a5232cd
commit
d901999264
|
@ -68,6 +68,7 @@ CREATE INDEX ix_orderid ON vas_ch_charge (order_id);
|
||||||
CREATE INDEX mid_ct ON vas_ch_income (mid, ct);
|
CREATE INDEX mid_ct ON vas_ch_income (mid, ct);
|
||||||
CREATE INDEX uid_ct ON vas_ch_income (uid, ct);
|
CREATE INDEX uid_ct ON vas_ch_income (uid, ct);
|
||||||
CREATE INDEX ix_orderid ON vas_ch_income (order_id);
|
CREATE INDEX ix_orderid ON vas_ch_income (order_id);
|
||||||
|
CREATE INDEX ix_ct ON vas_ch_income (ct);
|
||||||
CREATE INDEX mid_ct ON vas_ch_withdraw (mid, ct);
|
CREATE INDEX mid_ct ON vas_ch_withdraw (mid, ct);
|
||||||
CREATE INDEX uid_ct ON vas_ch_withdraw (uid, ct);
|
CREATE INDEX uid_ct ON vas_ch_withdraw (uid, ct);
|
||||||
CREATE INDEX ix_orderid ON vas_ch_withdraw (order_id);
|
CREATE INDEX ix_orderid ON vas_ch_withdraw (order_id);
|
||||||
|
|
|
@ -64,13 +64,13 @@ wxpay:
|
||||||
app_secret: "ebc325109b91087e22f046bc8ac5c940"
|
app_secret: "ebc325109b91087e22f046bc8ac5c940"
|
||||||
|
|
||||||
wxpay_tfz:
|
wxpay_tfz:
|
||||||
mchid: "1665016206"
|
mchid: "1675813721"
|
||||||
appid: ""
|
appid: "wxc28fd8aaf31984b6"
|
||||||
serial_no: "176903F43E78B0BA5AA1F08A3BE852A5F637DC77"
|
serial_no: "176903F43E78B0BA5AA1F08A3BE852A5F637DC77"
|
||||||
apiv3_key: "5QwY1XMK1HW3JQwGKbA3mfJ5cdsTQGjR"
|
apiv3_key: "5QwY1XMK1HW3JQwGKbA3mfJ5cdsTQGjR"
|
||||||
private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert_tfz/apiclient_key.pem"
|
private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert_tfz/apiclient_key.pem"
|
||||||
notify_url: "https://api.tiefen.fun/ext/vas/wxpay_callback"
|
notify_url: "https://api.tiefen.fun/ext/vas/wxpay_callback"
|
||||||
app_secret: "mot5410nh69k87e22f046bc8anv5xds8"
|
app_secret: "ebc325109b91087e22f046bc8ac5c940"
|
||||||
|
|
||||||
apollo:
|
apollo:
|
||||||
app_id: "wishpal_live_service"
|
app_id: "wishpal_live_service"
|
||||||
|
|
|
@ -36,6 +36,16 @@ wxpay:
|
||||||
notify_url: "https://api.wishpal.cn/ext/vas/wxpay_callback"
|
notify_url: "https://api.wishpal.cn/ext/vas/wxpay_callback"
|
||||||
app_secret: "ebc325109b91087e22f046bc8ac5c940"
|
app_secret: "ebc325109b91087e22f046bc8ac5c940"
|
||||||
|
|
||||||
|
wxpay_tfz:
|
||||||
|
mchid: "1675813721"
|
||||||
|
appid: "wxc28fd8aaf31984b6"
|
||||||
|
serial_no: "176903F43E78B0BA5AA1F08A3BE852A5F637DC77"
|
||||||
|
apiv3_key: "5QwY1XMK1HW3JQwGKbA3mfJ5cdsTQGjR"
|
||||||
|
private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert_tfz/apiclient_key.pem"
|
||||||
|
notify_url: "https://api.wishpal.cn/ext/vas/wxpay_callback"
|
||||||
|
app_secret: "ebc325109b91087e22f046bc8ac5c940"
|
||||||
|
apiv2_key: "mot5410nh69k87e22f046bc8anv5xds8"
|
||||||
|
|
||||||
crypto:
|
crypto:
|
||||||
aes:
|
aes:
|
||||||
private_key: "Xbz1145141919810"
|
private_key: "Xbz1145141919810"
|
||||||
|
|
|
@ -31,18 +31,19 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AppIdXinYiDaoLe = "wxc28fd8aaf31984b6"
|
AppIdXinYiDaoLe = "1665016206"
|
||||||
AppIdTieFenZone = ""
|
AppIdTieFenZone = "1675813721"
|
||||||
)
|
)
|
||||||
|
|
||||||
var allWxpayClients = map[string]*WxpayClient{}
|
var allWxpayClients = map[string]*WxpayClient{}
|
||||||
|
|
||||||
func GetDefaultWxpayClient() *WxpayClient {
|
func GetDefaultWxpayClient() *WxpayClient {
|
||||||
return allWxpayClients[AppIdXinYiDaoLe]
|
return allWxpayClients[AppIdTieFenZone]
|
||||||
}
|
}
|
||||||
|
|
||||||
type WxpayClient struct {
|
type WxpayClient struct {
|
||||||
clientV3 *wxpayv3.ClientV3
|
clientV3 *wxpayv3.ClientV3
|
||||||
|
MchId string `json:"mch_id"`
|
||||||
AppSecret string `json:"app_secret"`
|
AppSecret string `json:"app_secret"`
|
||||||
AppId string `json:"app_id"`
|
AppId string `json:"app_id"`
|
||||||
NotifyUrl string `json:"notify_url"`
|
NotifyUrl string `json:"notify_url"`
|
||||||
|
@ -60,7 +61,7 @@ func InitMulti(cfgList ...*configcenter.WxpayClientConfig) (err error) {
|
||||||
err = errors.New("NewAlipayClient fail")
|
err = errors.New("NewAlipayClient fail")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
allWxpayClients[cli.AppId] = cli
|
allWxpayClients[cli.MchId] = cli
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -82,6 +83,7 @@ func NewWxpayClient(cfg *configcenter.WxpayClientConfig) (ret *WxpayClient, err
|
||||||
|
|
||||||
ret = &WxpayClient{
|
ret = &WxpayClient{
|
||||||
clientV3: wxpayCliV3,
|
clientV3: wxpayCliV3,
|
||||||
|
MchId: cfg.MchId,
|
||||||
AppSecret: cfg.AppSecret,
|
AppSecret: cfg.AppSecret,
|
||||||
AppId: cfg.AppId,
|
AppId: cfg.AppId,
|
||||||
NotifyUrl: cfg.NotifyUrl,
|
NotifyUrl: cfg.NotifyUrl,
|
||||||
|
|
Loading…
Reference in New Issue