Merge pull request 'test' (#35) from test into prod
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/35
This commit is contained in:
+5
-4
@@ -345,7 +345,7 @@ public class TourismServiceImpl extends SuperServiceImpl<TourismMapper, Tourism>
|
||||
if (qrCodes == null || qrCodes.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String imageUrl=null;
|
||||
for (QrCode qrCode : qrCodes) {
|
||||
if (qrCode == null || qrCode.getCodeId() == null || qrCode.getCodeId().trim().isEmpty()) {
|
||||
continue;
|
||||
@@ -359,9 +359,10 @@ public class TourismServiceImpl extends SuperServiceImpl<TourismMapper, Tourism>
|
||||
vo.setQrCodeName(qrName);
|
||||
vo.setQrCode(qrCode.getCodeId());
|
||||
vo.setPrice(qrCode.getPrice());
|
||||
|
||||
String imageUrl = resolveQrCodeImageUrl(qrCode.getCodeId());
|
||||
vo.setQrCodeImage(imageUrl);
|
||||
if(imageUrl==null){
|
||||
imageUrl = resolveQrCodeImageUrl(qrCode.getCodeId());
|
||||
vo.setQrCodeImage(imageUrl);
|
||||
}
|
||||
|
||||
BigDecimal[] lngLat = resolveDeviceLngLat(qrCode.getDeviceSn(), deviceSnToLngLat);
|
||||
if (lngLat != null && lngLat.length == 2) {
|
||||
|
||||
Reference in New Issue
Block a user