桌码生成添加地址前缀
This commit is contained in:
@@ -167,7 +167,7 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
|
||||
File qrFile = new File(dir, tableCode + ".png");
|
||||
|
||||
// 生成二维码图片
|
||||
QrCodeUtil.generate(tableCode, 300, 300, qrFile);
|
||||
QrCodeUtil.generate("https://kysh.sxczgkj.cn/codeplate?code=" + tableCode, 300, 300, qrFile);
|
||||
}
|
||||
|
||||
// 先保存数据库记录,确保生成ZIP前无异常
|
||||
@@ -206,7 +206,7 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
|
||||
if (map.containsKey(tableCode)) {
|
||||
generateCode(++count, shopId, id + 1, map);
|
||||
}
|
||||
return "https://kysh.sxczgkj.cn/codeplate?code=" + tableCode;
|
||||
return tableCode;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user