|
@@ -470,11 +470,15 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
private void createQrCode(String num, ScenePlusExt scenePlusExt, String qrLogo) {
|
|
|
if (!ObjectUtils.isEmpty(qrLogo)) {
|
|
|
if (!new File(ConstantFilePath.AGENT_PATH + qrLogo).exists()) {
|
|
|
- fYunFileService.downloadFile(qrLogo, ConstantFilePath.AGENT_PATH + qrLogo);
|
|
|
+ try {
|
|
|
+ fYunFileService.downloadFile(qrLogo, ConstantFilePath.AGENT_PATH + qrLogo);
|
|
|
+ qrLogo = ConstantFilePath.AGENT_PATH + qrLogo;
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("公司logo下载失败:{}", qrLogo);
|
|
|
+ qrLogo = null;
|
|
|
+ }
|
|
|
}
|
|
|
- qrLogo = ConstantFilePath.AGENT_PATH + qrLogo;
|
|
|
}
|
|
|
-
|
|
|
//生成二维码
|
|
|
String outPathZh = ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+ num +".png";
|
|
|
String outPathEn = ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+ num +"_en.png";
|