This commit is contained in:
邹宗楠
2022-11-17 17:49:12 +08:00
parent 5806a9fad8
commit b0dfd93d6c
4 changed files with 8 additions and 11 deletions

View File

@@ -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