1
This commit is contained in:
@@ -237,7 +237,7 @@ func (p *Print) UpdatePrinter(c *gin.Context) {
|
||||
// TestPrint 测试打印 POST
|
||||
// @Title 测试打印
|
||||
// @Description 测试打印
|
||||
// @Param token cookie string true "用户登录token"
|
||||
// @Param token cookie string false "用户登录token"
|
||||
// @Param data body app_model.TestPrintReq true "请求参数"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
@@ -258,9 +258,9 @@ func (p *Print) TestPrint(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if tokenInfo = controllers.CheckToken(c); tokenInfo == nil {
|
||||
return
|
||||
}
|
||||
//if tokenInfo = controllers.CheckToken(c); tokenInfo == nil {
|
||||
// return
|
||||
//}
|
||||
controllers.CallFunc(c, func() (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = printServer.TestPrint(param.AppID, tokenInfo, param.PrintNo, param.OrderNo, param.Content)
|
||||
return retVal, "", err
|
||||
|
||||
Reference in New Issue
Block a user