mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
新增 站点管理配置下发二维码地址
This commit is contained in:
@@ -10,5 +10,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class IssueQRCodeCommand {
|
||||
String pileSn;
|
||||
private String pileSn;
|
||||
|
||||
private String qrcodePrefix;
|
||||
}
|
||||
|
||||
@@ -230,7 +230,12 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
// 二维码前缀 如:“www.baidu.com?No=”
|
||||
// String qrCodePrefix = "https://wx.charging.shbochong.cn/prepare_charge?code=";
|
||||
// String qrCodePrefix = pileBasicInfoService.getPileQrCodeUrl(null);
|
||||
String qrCodePrefix = pileConnectorInfoService.getPileConnectorQrCodeUrl(null);
|
||||
String qrCodePrefix = "";
|
||||
if (StringUtils.isBlank(command.getQrcodePrefix())) {
|
||||
qrCodePrefix = pileConnectorInfoService.getPileConnectorQrCodeUrl(null);
|
||||
}else {
|
||||
qrCodePrefix = command.getQrcodePrefix();
|
||||
}
|
||||
byte[] qrCodePrefixByteArr = BytesUtil.str2Asc(qrCodePrefix);
|
||||
|
||||
// 二维码前缀长度 二维码前缀长度长度最大不超过200 字节
|
||||
|
||||
Reference in New Issue
Block a user