This commit is contained in:
邹宗楠
2022-06-06 10:35:27 +08:00
parent 7376821fa6
commit f53566c82c
3 changed files with 6 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ func (c *JxOrderController) CreateOrder() {
// @Param vendorPayType formData string true "平台支付类型"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /Pay4Order [post]
// @router / [post]
func (c *JxOrderController) Pay4Order() {
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)

View File

@@ -39,6 +39,7 @@ func MsgFail() *TicktockRes {
}
func (c *TicTocController) TtMsg() {
globals.SugarLogger.Debugf("============err:%s", "抖音支付/退款回调")
if c.Ctx.Input.Method() == http.MethodPost {
call, refund, payType, err := api.TiktokApi.GetCallbackMsg(getPayInfo(c.Ctx))
globals.SugarLogger.Debugf("tictok callback callbackResponse:%s", utils.Format4Output(call, true))