|
@@ -91,6 +91,9 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
@Value("#{'${build.scene.post.not-delete-nas-nums:}'.split(',')}")
|
|
|
private List<String> notDeleteNasNumList;
|
|
|
|
|
|
+ @Value("${main.url}")
|
|
|
+ private String mainUrl;
|
|
|
+
|
|
|
@Autowired
|
|
|
private RabbitMqProducer mqProducer;
|
|
|
|
|
@@ -648,8 +651,9 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
if(!ObjectUtils.isEmpty(localLogoPath)){
|
|
|
qrConfig.setImg(localLogoPath);
|
|
|
}
|
|
|
- QrCodeUtil.generate(scenePlusExt.getWebSite(), qrConfig, FileUtil.file(outPathZh));
|
|
|
- QrCodeUtil.generate(scenePlusExt.getWebSite() + "&lang=en", qrConfig, FileUtil.file(outPathEn));
|
|
|
+ String webSize = mainUrl + scenePlusExt.getWebSite();
|
|
|
+ QrCodeUtil.generate(webSize, qrConfig, FileUtil.file(outPathZh));
|
|
|
+ QrCodeUtil.generate(webSize + "&lang=en", qrConfig, FileUtil.file(outPathEn));
|
|
|
//上传二维码
|
|
|
fYunFileService.uploadFile(outPathZh, String.format(UploadFilePath.DOWNLOADS_QRCODE, num) + num + ".png");
|
|
|
fYunFileService.uploadFile(outPathEn, String.format(UploadFilePath.DOWNLOADS_QRCODE, num) + num + "_en.png");
|