自定义打印

请求参数

param

打印类型
打印方向(默认0)

自定义参数

参数名参数值操作
请求数据
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)); }