1
This commit is contained in:
@@ -69,7 +69,7 @@ wxpayAppMchID = "1390686702"
|
|||||||
wxpayNotifyURL = "http://callback.test.jxc4.com/wxpay/msg/"
|
wxpayNotifyURL = "http://callback.test.jxc4.com/wxpay/msg/"
|
||||||
|
|
||||||
# 抖音支付回调地址
|
# 抖音支付回调地址
|
||||||
tiktokNotifyUrl = "http://callback.test.jxc4.com/ttpay/ttmsg/"
|
tiktokNotifyUrl = "https://callback.test.jxc4.com/ttpay/ttmsg"
|
||||||
|
|
||||||
qywxID = "ww9a156bfa070e1857"
|
qywxID = "ww9a156bfa070e1857"
|
||||||
qywxSecret = "q6H6WFV-c7gyyfBaxLxilIzeJv_mGk1CXtPqUR5qm4E"
|
qywxSecret = "q6H6WFV-c7gyyfBaxLxilIzeJv_mGk1CXtPqUR5qm4E"
|
||||||
@@ -287,7 +287,7 @@ aliUpcAppCode = "00a6eefba0204d3fa310ac0ee7a6fc54"
|
|||||||
wxpayNotifyURL = "http://callback.jxc4.com/wxpay/msg/"
|
wxpayNotifyURL = "http://callback.jxc4.com/wxpay/msg/"
|
||||||
|
|
||||||
# 抖音支付回调地址
|
# 抖音支付回调地址
|
||||||
tiktokNotifyUrl = "http://callback.jxc4.com/ttpay/ttmsg/"
|
tiktokNotifyUrl = "https://callback.jxc4.com/ttpay/ttmsg"
|
||||||
|
|
||||||
tonglianPayAppID = "00183083"
|
tonglianPayAppID = "00183083"
|
||||||
tonglianPayKey = "18048531223"
|
tonglianPayKey = "18048531223"
|
||||||
@@ -386,7 +386,7 @@ weixinAppSecretPrint = "ff4128908947cfb71002f74599c0dbf9"
|
|||||||
wxpayNotifyURL = "http://callback-jxgy.jxc4.com/wxpay/msg/"
|
wxpayNotifyURL = "http://callback-jxgy.jxc4.com/wxpay/msg/"
|
||||||
|
|
||||||
# 抖音支付回调地址
|
# 抖音支付回调地址
|
||||||
tiktokNotifyUrl = "http://callback-jxgy.jxc4.com/ttpay/ttmsg/"
|
tiktokNotifyUrl = "https://callback-jxgy.jxc4.com/ttpay/ttmsg"
|
||||||
|
|
||||||
tonglianPayAppID = "00183083"
|
tonglianPayAppID = "00183083"
|
||||||
tonglianPayKey = "18048531223"
|
tonglianPayKey = "18048531223"
|
||||||
@@ -574,7 +574,7 @@ aliUpcAppCode = "00a6eefba0204d3fa310ac0ee7a6fc54"
|
|||||||
wxpayNotifyURL = "http://callback.beta.jxc4.com/wxpay/msg/"
|
wxpayNotifyURL = "http://callback.beta.jxc4.com/wxpay/msg/"
|
||||||
|
|
||||||
# 抖音支付回调地址
|
# 抖音支付回调地址
|
||||||
tiktokNotifyUrl = "http://callback.beta.jxc4.com/ttpay/ttmsg/"
|
tiktokNotifyUrl = "https://callback.beta.jxc4.com/ttpay/ttmsg"
|
||||||
|
|
||||||
tonglianPayAppID = "00183083"
|
tonglianPayAppID = "00183083"
|
||||||
tonglianPayKey = "18048531223"
|
tonglianPayKey = "18048531223"
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ func (c *JxOrderController) CreateOrder() {
|
|||||||
// @Param vendorPayType formData string true "平台支付类型"
|
// @Param vendorPayType formData string true "平台支付类型"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /Pay4Order [post]
|
// @router / [post]
|
||||||
func (c *JxOrderController) Pay4Order() {
|
func (c *JxOrderController) Pay4Order() {
|
||||||
c.callPay4Order(func(params *tJxorderPay4OrderParams) (retVal interface{}, errCode string, err error) {
|
c.callPay4Order(func(params *tJxorderPay4OrderParams) (retVal interface{}, errCode string, err error) {
|
||||||
retVal, err = localjx.Pay4Order(params.Ctx, utils.Str2Int64(params.VendorOrderID), params.PayType, params.VendorPayType, params.SubAppID)
|
retVal, err = localjx.Pay4Order(params.Ctx, utils.Str2Int64(params.VendorOrderID), params.PayType, params.VendorPayType, params.SubAppID)
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ func MsgFail() *TicktockRes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *TicTocController) TtMsg() {
|
func (c *TicTocController) TtMsg() {
|
||||||
|
globals.SugarLogger.Debugf("============err:%s", "抖音支付/退款回调")
|
||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
call, refund, payType, err := api.TiktokApi.GetCallbackMsg(getPayInfo(c.Ctx))
|
call, refund, payType, err := api.TiktokApi.GetCallbackMsg(getPayInfo(c.Ctx))
|
||||||
globals.SugarLogger.Debugf("tictok callback callbackResponse:%s", utils.Format4Output(call, true))
|
globals.SugarLogger.Debugf("tictok callback callbackResponse:%s", utils.Format4Output(call, true))
|
||||||
|
|||||||
Reference in New Issue
Block a user