|
@@ -576,21 +576,21 @@ public class AdminTmHouseController {
|
|
|
// throw new CommonBaseException(ResultCodeEnum.D025);
|
|
|
// }
|
|
|
// }
|
|
|
- if (StringUtils.isNoneBlank(tmHouse.getVrLink())) {
|
|
|
- String qrCodeUrl = "/pages/web/web?vr_link=" + tmHouse.getVrLink();
|
|
|
- //生成带看页面的二维码
|
|
|
- String imageLocalPath = imageFilePath + houseId + "_QRCode.png";
|
|
|
- WxOpUtils.getWxQRCode(qrCodeUrl, userWxAppId, userWxAppSecret, imageLocalPath);
|
|
|
- String ossPath = ossImagePath + houseId + "_QRCode.png";
|
|
|
- ossCheckPointUploadUtil.upload2(imageLocalPath, ossPath);
|
|
|
- String imageTotalOssUrl = ossQueryUrl + ossPath;
|
|
|
- tmHouse.setWxAqrCode(imageTotalOssUrl);
|
|
|
- File file = new File(imageLocalPath);
|
|
|
- if (file.exists()) {
|
|
|
- //删除本地缓存的二维码
|
|
|
- file.delete();
|
|
|
- }
|
|
|
- }
|
|
|
+// if (StringUtils.isNoneBlank(tmHouse.getVrLink())) {
|
|
|
+// String qrCodeUrl = "/pages/web/web?vr_link=" + tmHouse.getVrLink();
|
|
|
+// //生成带看页面的二维码
|
|
|
+// String imageLocalPath = imageFilePath + houseId + "_QRCode.png";
|
|
|
+// WxOpUtils.getWxQRCode(qrCodeUrl, userWxAppId, userWxAppSecret, imageLocalPath);
|
|
|
+// String ossPath = ossImagePath + houseId + "_QRCode.png";
|
|
|
+// ossCheckPointUploadUtil.upload2(imageLocalPath, ossPath);
|
|
|
+// String imageTotalOssUrl = ossQueryUrl + ossPath;
|
|
|
+// tmHouse.setWxAqrCode(imageTotalOssUrl);
|
|
|
+// File file = new File(imageLocalPath);
|
|
|
+// if (file.exists()) {
|
|
|
+// //删除本地缓存的二维码
|
|
|
+// file.delete();
|
|
|
+// }
|
|
|
+// }
|
|
|
TmAdmin user = ShiroUtils.getAdmin();
|
|
|
if(user == null){
|
|
|
log.error("用户未登录,登录");
|