门禁开门计费逻辑调整
This commit is contained in:
@@ -12,7 +12,7 @@ public class ListenKeyFrame extends Thread{
|
||||
Frame frame;
|
||||
|
||||
public void newFrame (String title) {
|
||||
frame = new Frame("智慧云馆门禁" + title);
|
||||
frame = new Frame("智慧云馆门禁new" + title);
|
||||
frame.setBounds(300,100,600,500);
|
||||
frame.setLayout(new FlowLayout(FlowLayout.CENTER,20,50));//设计布局
|
||||
JLabel label = new JLabel("请保持该界面被选中,否则将无法监听二维码扫描!");
|
||||
|
||||
@@ -31,7 +31,7 @@ public class MessageHandler {
|
||||
String decrypt = AesUtil.decrypt(barcode);
|
||||
// 这个二维码是线下的二维码
|
||||
if (!decrypt.startsWith("venue-")){
|
||||
VenueBarCode venueBarCode = MakeCode.decodeCode(barcode);
|
||||
VenueBarCode venueBarCode = MakeCode.decodeCode(barcode);
|
||||
if (venueBarCode == null) {
|
||||
logger.error("二维码不合法" + barcode);
|
||||
return null;
|
||||
|
||||
@@ -48,11 +48,12 @@ public class ClientService {
|
||||
Thread.sleep(3000);
|
||||
listenKeyFrame1.close();
|
||||
ListenKeyFrame listenKeyFrame2 = new ListenKeyFrame();
|
||||
listenKeyFrame2.newFrame("-加载中53%");
|
||||
listenKeyFrame2.newFrame("-加载中94%");
|
||||
Thread.sleep(3000);
|
||||
listenKeyFrame2.close();
|
||||
ListenKeyFrame listenKeyFrame3 = new ListenKeyFrame();
|
||||
listenKeyFrame3.newFrame("");
|
||||
listenKeyFrame3.newFrame("aaa");
|
||||
listenKeyFrame3.focus();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user