|
@@ -68,6 +68,9 @@ public class AuthProductServiceImpl implements AuthProductService {
|
|
@Value("${caimei.oldapi}")
|
|
@Value("${caimei.oldapi}")
|
|
private String wwwServer;
|
|
private String wwwServer;
|
|
|
|
|
|
|
|
+ @Value("${caimei.zpapi}")
|
|
|
|
+ private String zpapiServer;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private FastDfsClient client;
|
|
private FastDfsClient client;
|
|
|
|
|
|
@@ -515,7 +518,8 @@ public class AuthProductServiceImpl implements AuthProductService {
|
|
}
|
|
}
|
|
// 添加二维码信息
|
|
// 添加二维码信息
|
|
if (StringUtils.isNotEmpty(template.getQrPosition())) {
|
|
if (StringUtils.isNotEmpty(template.getQrPosition())) {
|
|
- String qrCodeLink = wwwServer + "/product/auth/product-" + product.getProductId() + ".html";
|
|
|
|
|
|
+// String qrCodeLink = wwwServer + "/product/auth/product-" + product.getProductId() + ".html";
|
|
|
|
+ String qrCodeLink = zpapiServer + "/"+product.getCreateBy()+"/"+product.getPrefix()+"/approve/device/detail?id=" + product.getProductId() ;
|
|
map.put("addQr1_link", qrCodeLink);
|
|
map.put("addQr1_link", qrCodeLink);
|
|
map.put("addQr1_size", template.getQrSize());
|
|
map.put("addQr1_size", template.getQrSize());
|
|
String[] split = template.getQrPosition().split(",");
|
|
String[] split = template.getQrPosition().split(",");
|