From 5fc2fc57afc63a906ec5567e91aeab72d20aab7d Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期一, 16 一月 2023 23:17:50 +0800
Subject: [PATCH] 优化代码
---
service-common/src/main/java/com/java110/common/cmd/machine/GetCarMachineQrCodeUrl.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/service-common/src/main/java/com/java110/common/cmd/machine/GetCarMachineQrCodeUrl.java b/service-common/src/main/java/com/java110/common/cmd/machine/GetCarMachineQrCodeUrl.java
index cae727e..17e0892 100644
--- a/service-common/src/main/java/com/java110/common/cmd/machine/GetCarMachineQrCodeUrl.java
+++ b/service-common/src/main/java/com/java110/common/cmd/machine/GetCarMachineQrCodeUrl.java
@@ -21,7 +21,9 @@
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.Cmd;
import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.CommunitySettingFactory;
import com.java110.core.log.LoggerFactory;
+import com.java110.dto.communitySetting.CommunitySettingDto;
import com.java110.dto.parkingBoxArea.ParkingBoxAreaDto;
import com.java110.dto.smallWeChat.SmallWeChatDto;
import com.java110.intf.community.IParkingBoxAreaV1InnerServiceSMO;
@@ -76,7 +78,7 @@
smallWeChatDto.setWeChatType(SmallWeChatDto.WECHAT_TYPE_PUBLIC);
List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto);
String ownerUrl = MappingCache.getValue("OWNER_WECHAT_URL");
- ownerUrl += ("/#/pages/tempParkingFee/tempParkingFee?paId=" + getPaIds(reqJson));
+ ownerUrl += ("/#/pages/fee/tempParkingFee?paId=" + getPaIds(reqJson)+"&communityId="+reqJson.getString("communityId"));
if (smallWeChatDtos != null && smallWeChatDtos.size() > 0) {
ownerUrl += ("&appId=" + smallWeChatDtos.get(0).getAppId());
}
@@ -84,6 +86,11 @@
if (reqJson.containsKey("machineId") && !"-1".equals(reqJson.getString("machineId"))) {
ownerUrl += ("&machineId=" + reqJson.getString("machineId"));
}
+
+ String aliAppId = CommunitySettingFactory.getValue(reqJson.getString("communityId"),"APP_ID");
+ if( !StringUtil.isEmpty(aliAppId)){
+ ownerUrl += ("&aliAppId=" + aliAppId);
+ }
reqJson.put("url", ownerUrl);
cmdDataFlowContext.setResponseEntity(ResultVo.createResponseEntity(reqJson));
}
--
Gitblit v1.8.0