线下订单驱动开门
This commit is contained in:
@@ -14,6 +14,14 @@ public class MakeCode {
|
||||
return NettyConstant.BARCODE_BEGIN + AesUtil.encrypt(information) + NettyConstant.BARCODE_END;
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成二维码
|
||||
* @return
|
||||
*/
|
||||
public static String makeOfflineCode (String barcodeSn) {
|
||||
return NettyConstant.BARCODE_BEGIN + AesUtil.encrypt(barcodeSn) + NettyConstant.BARCODE_END;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析二维码
|
||||
*/
|
||||
@@ -36,6 +44,13 @@ public class MakeCode {
|
||||
return venueBarCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析二维码
|
||||
*/
|
||||
public static String decodeOfflineCode (String barcodeSn) {
|
||||
return AesUtil.decrypt(barcodeSn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 还原二维码
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user