Commit eeb82e77 authored by 廖旭伟's avatar 廖旭伟

测试bug修改

parent 6ea65a8f
Pipeline #2977 failed with stages
......@@ -61,10 +61,10 @@ public class DatumFillQrcodeServiceImpl extends AbstractCRUDServiceImpl<DatumFil
if (!pathDir.exists()) {
pathDir.mkdirs();
}
String newName = RandomUtil.randomNumbers(12) + ".jpg";
String filePathAll = allPath + newName;
for(MatterDatumEntity item:allDatum){
String newName = RandomUtil.randomNumbers(12) + ".jpg";
String filePathAll = allPath + newName;
String result = WXCreateQRCodeUtil.createWeiXinQRCode(PATH+item.getId(),appId,appSecret,filePathAll);
log.info("材料id:{},生成二维码地址:{}",item.getId(),result);
if(StringUtils.isNotEmpty(result)) {
......
......@@ -95,7 +95,7 @@ public class DatumFillQrcodeController extends BaseCRUDJsonBodyMappingController
query.setOrderColList(Arrays.asList(new OrderCol("createTime",OrderCol.DESCENDING)));
DatumFillQrcodeEntity entity = service.selectOne(query);
if(entity!=null){
byte[] data = Files.readAllBytes(Paths.get(entity.getQrcode()));
byte[] data = Files.readAllBytes(Paths.get(this.filePath + entity.getQrcode()));
doResponseImage(response, data);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment