尺幅
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-print/globals"
|
||||
"git.rosy.net.cn/jx-print/services"
|
||||
"git.rosy.net.cn/jx-print/services/api"
|
||||
"github.com/gin-gonic/gin"
|
||||
"io/ioutil"
|
||||
)
|
||||
@@ -21,4 +24,10 @@ func (t *CallbackController) Msg(c *gin.Context) {
|
||||
func (t *CallbackController) TlPayCallback(c *gin.Context) {
|
||||
data, _ := ioutil.ReadAll(c.Request.Body)
|
||||
globals.SugarLogger.Debugf("TlPayCallback msg: %v", string(data))
|
||||
c.Request.Body = ioutil.NopCloser(bytes.NewBuffer(data))
|
||||
if call, err := api.TLpayAPI.GetCallbackMsg(c.Request); err == nil {
|
||||
globals.SugarLogger.Debugf("tonglianapi callback callbackResponse:%s", utils.Format4Output(call, true))
|
||||
services.PayTLCallback(call)
|
||||
}
|
||||
c.JSON(200, &CallBack{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user