Browse Source

二维码拼接段数 存在六段,更改判断条件

master
赵宏斌 5 months ago
parent
commit
e40aa949d4
  1. 2
      src/main/java/com/heai/modules/production/service/impl/PrintLabelRecordServiceImpl.java

2
src/main/java/com/heai/modules/production/service/impl/PrintLabelRecordServiceImpl.java

@ -130,7 +130,7 @@ public class PrintLabelRecordServiceImpl extends ServiceImpl<PrintLabelRecordMap
throw new RuntimeException("二维码格式不正确");
}
String[] qrCode = qrCodeContent.split(";");
if (qrCode.length != 5){
if (qrCode.length != 5&&qrCode.length != 6){
throw new RuntimeException("二维码格式不正确");
}
String site = qrCode[0];

Loading…
Cancel
Save