|
@@ -77,6 +77,9 @@ public class DistributionActivityPosterServiceImpl extends ServiceImpl<Distribut
|
|
|
@Value("${certificate.host}")
|
|
|
private String CERTIFICATE_HOST;
|
|
|
|
|
|
+ @Value("${liveGotoURL}")
|
|
|
+ private String liveGotoURL;
|
|
|
+
|
|
|
@Override
|
|
|
public DistributionActivityPosterVo queryById(Long posterId){
|
|
|
DistributionActivityPoster db = this.baseMapper.selectById(posterId);
|
|
@@ -112,7 +115,7 @@ public class DistributionActivityPosterServiceImpl extends ServiceImpl<Distribut
|
|
|
Integer left = Integer.valueOf(String.valueOf(cardObj.get("left")));
|
|
|
Integer width = Integer.valueOf(String.valueOf(cardObj.get("width")));
|
|
|
Integer height = Integer.valueOf(String.valueOf(cardObj.get("height")));
|
|
|
- String qrTxt = "https://"+sysTenant.getHostH5Seller()+"/pages/vcard/index?shareCode="+sellerVo.getShareCode();
|
|
|
+ String qrTxt = liveGotoURL+sysTenant.getHostH5Seller()+"/pages/vcard/index?shareCode="+sellerVo.getShareCode();
|
|
|
QRCodeWriter qrCodeWriter = new QRCodeWriter();
|
|
|
BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, width, height);
|
|
|
BufferedImage qrImage = ToolsUtils.toBufferedImage(bitMatrix);
|
|
@@ -135,7 +138,7 @@ public class DistributionActivityPosterServiceImpl extends ServiceImpl<Distribut
|
|
|
Integer left = Integer.valueOf(String.valueOf(disObj.get("left")));
|
|
|
Integer width = Integer.valueOf(String.valueOf(disObj.get("width")));
|
|
|
Integer height = Integer.valueOf(String.valueOf(disObj.get("height")));
|
|
|
- String qrTxt = "https://"+sysTenant.getHostH5Seller()+"/pages5/scan/retailact?shareCode="+sellerVo.getShareCode()+"&distributionId="+activityVo.getDistributionId()+"&linkCode="+linkCode+"&distributionCode="+activityVo.getCode();
|
|
|
+ String qrTxt = liveGotoURL+sysTenant.getHostH5Seller()+"/pages5/scan/retailact?shareCode="+sellerVo.getShareCode()+"&distributionId="+activityVo.getDistributionId()+"&linkCode="+linkCode+"&distributionCode="+activityVo.getCode();
|
|
|
QRCodeWriter qrCodeWriter = new QRCodeWriter();
|
|
|
BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, width, height);
|
|
|
BufferedImage qrImage = ToolsUtils.toBufferedImage(bitMatrix);
|
|
@@ -192,9 +195,9 @@ public class DistributionActivityPosterServiceImpl extends ServiceImpl<Distribut
|
|
|
throw new CustomException("非法分享码");
|
|
|
}
|
|
|
SysTenant sysTenant = iSysTenantService.getOne(new LambdaQueryWrapper<SysTenant>().eq(SysTenant::getTenantId, ToolsUtils.getTenantId()));
|
|
|
- String urlActivity = "https://"+sysTenant.getHostH5()+"/pages5/scan/retailact?shareCode="+sellerVo.getShareCode()+"&distributionId="+activityVo.getDistributionId()+"&linkCode="+bo.getLinkCode()+"&distributionCode="+activityVo.getCode();
|
|
|
+ String urlActivity = liveGotoURL+sysTenant.getHostH5()+"/pages5/scan/retailact?shareCode="+sellerVo.getShareCode()+"&distributionId="+activityVo.getDistributionId()+"&linkCode="+bo.getLinkCode()+"&distributionCode="+activityVo.getCode();
|
|
|
|
|
|
- String urlCard = "https://"+sysTenant.getHostH5Seller()+"/pages/vcard/index?shareCode="+sellerVo.getShareCode();
|
|
|
+ String urlCard = liveGotoURL+sysTenant.getHostH5Seller()+"/pages/vcard/index?shareCode="+sellerVo.getShareCode();
|
|
|
map.put("urlActivity",urlActivity);
|
|
|
map.put("urlCard",urlCard);
|
|
|
map.put("posterUrl",db.getUrl());
|
|
@@ -285,7 +288,7 @@ public class DistributionActivityPosterServiceImpl extends ServiceImpl<Distribut
|
|
|
@Override
|
|
|
public String getWxCodeUrl() {
|
|
|
SysTenant sysTenant = iSysTenantService.getOne(new LambdaQueryWrapper<SysTenant>().eq(SysTenant::getTenantId, ToolsUtils.getTenantId()));
|
|
|
- String url = "https://"+sysTenant.getHostH5Seller()+"/pages/cashout/index?isAuth=1";
|
|
|
+ String url = liveGotoURL+sysTenant.getHostH5Seller()+"/pages/login/login";
|
|
|
return url;
|
|
|
}
|
|
|
|