25 lines
518 B
Go
25 lines
518 B
Go
package controllers
|
|
|
|
import (
|
|
"git.rosy.net.cn/jx-print/globals"
|
|
"git.rosy.net.cn/jx-print/services"
|
|
"github.com/gin-gonic/gin"
|
|
"io/ioutil"
|
|
)
|
|
|
|
type CallbackController struct {
|
|
}
|
|
|
|
func (t *CallbackController) Msg(c *gin.Context) {
|
|
if err := services.SimFlowDaySettle(); err != nil {
|
|
c.JSON(200, &CallBack{
|
|
Desc: err.Error(),
|
|
})
|
|
}
|
|
}
|
|
|
|
func (t *CallbackController) TlPayCallback(c *gin.Context) {
|
|
data, _ := ioutil.ReadAll(c.Request.Body)
|
|
globals.SugarLogger.Debugf("TlPayCallback msg: %v", string(data))
|
|
}
|