桌码生成添加地址前缀

This commit is contained in:
张松
2025-03-06 14:41:13 +08:00
parent 19210e3c80
commit f8793b483a

View File

@@ -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;
}