自定义打印
查看技术文档 重置为默认值
请求参数
请求数据
public void testCustom() throws Exception { CustomReq customReq = new CustomReq(); customReq.setPrintType(PrintType.IMAGE); customReq.setTempId("41b9d19ee56b45b5a23d7b6ace4f9029"); Map<String,Object> customParam = new HashMap<>(); customParam.put("qrcode","888888888"); customReq.setCustomParam(customParam); String param = new Gson().toJson(customReq); String t = System.currentTimeMillis() + ""; PrintReq printReq = new PrintReq(); printReq.setT(t); printReq.setKey(key); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setMethod(ApiInfoConstant.CUSTOM); printReq.setParam(param); IBaseClient baseClient = new LabelV2(); System.out.println(baseClient.execute(printReq)); }