新增用户充值卡管理模块
This commit is contained in:
@ -18,6 +18,7 @@ import java.util.Objects;
|
||||
@RestController
|
||||
@RequestMapping("/printer")
|
||||
public class PrinterController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private YiLianYunPrintService printerService;
|
||||
|
||||
@ -38,13 +39,14 @@ public class PrinterController extends BaseController {
|
||||
if(Objects.isNull(printNum)){
|
||||
throw new ServiceException("打印次数不能为空!");
|
||||
}
|
||||
if(printNum>2){
|
||||
throw new ServiceException("打印次数不能超过2!");
|
||||
}
|
||||
// if(printNum>2){
|
||||
// throw new ServiceException("打印次数不能超过2!");
|
||||
// }
|
||||
for (int i = 0; i < printNum; i++) {
|
||||
printerService.imagePrint(imageUrl);
|
||||
Thread.sleep(200);
|
||||
}
|
||||
|
||||
return AjaxResult.success();
|
||||
}
|
||||
/**
|
||||
|
Reference in New Issue
Block a user