diff --git a/pom.xml b/pom.xml
index 5d09fffc..9d913dd0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
2.5.1
2020.0.3
2021.1
- 1.1.0
+ 2.0.2
2.4.1
2.1.4
3.0.0
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/com/xhpc/system/api/model/LoginUser.java b/ruoyi-api/ruoyi-api-system/src/main/java/com/xhpc/system/api/model/LoginUser.java
index 58af56be..cae15e70 100644
--- a/ruoyi-api/ruoyi-api-system/src/main/java/com/xhpc/system/api/model/LoginUser.java
+++ b/ruoyi-api/ruoyi-api-system/src/main/java/com/xhpc/system/api/model/LoginUser.java
@@ -34,6 +34,9 @@ public class LoginUser implements Serializable
*/
private Integer userType;
+
+ private String userTypeUtil;
+
/**
* 租户id
*/
@@ -195,5 +198,11 @@ public class LoginUser implements Serializable
this.openId = openId;
}
+ public String getUserTypeUtil() {
+ return userTypeUtil;
+ }
+ public void setUserTypeUtil(String userTypeUtil) {
+ this.userTypeUtil = userTypeUtil;
+ }
}
diff --git a/ruoyi-common/ruoyi-common-security/src/main/java/com/xhpc/common/security/service/TokenService.java b/ruoyi-common/ruoyi-common-security/src/main/java/com/xhpc/common/security/service/TokenService.java
index 392a3c19..b5685e1c 100644
--- a/ruoyi-common/ruoyi-common-security/src/main/java/com/xhpc/common/security/service/TokenService.java
+++ b/ruoyi-common/ruoyi-common-security/src/main/java/com/xhpc/common/security/service/TokenService.java
@@ -46,6 +46,7 @@ public class TokenService {
loginUser.setTenantId(loginUser.getTenantId());
loginUser.setUserType(loginUser.getUserType());
loginUser.setOpenId(loginUser.getOpenId());
+ loginUser.setUserTypeUtil(loginUser.getUserTypeUtil());
refreshToken(loginUser);
// 保存或更新用户token
diff --git a/xhpc-modules/xhpc-general/pom.xml b/xhpc-modules/xhpc-general/pom.xml
index 406a74f3..d3664622 100644
--- a/xhpc-modules/xhpc-general/pom.xml
+++ b/xhpc-modules/xhpc-general/pom.xml
@@ -114,10 +114,6 @@
org.springframework
spring-web
-
- org.springframework
- spring-web
-
diff --git a/xhpc-modules/xhpc-order/pom.xml b/xhpc-modules/xhpc-order/pom.xml
index 60cd0e16..121691b4 100644
--- a/xhpc-modules/xhpc-order/pom.xml
+++ b/xhpc-modules/xhpc-order/pom.xml
@@ -95,7 +95,11 @@
org.springframework.boot
spring-boot-starter-websocket
-
+
+ com.squareup.okhttp3
+ okhttp
+
+
diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/api/XhpcChargeOrderController.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/api/XhpcChargeOrderController.java
index 01f923eb..a9863c83 100644
--- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/api/XhpcChargeOrderController.java
+++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/api/XhpcChargeOrderController.java
@@ -6,8 +6,11 @@ import com.xhpc.common.api.WebSocketService;
import com.xhpc.common.core.web.controller.BaseController;
import com.xhpc.common.core.web.domain.AjaxResult;
import com.xhpc.common.core.web.page.TableDataInfo;
+import com.xhpc.common.redis.service.RedisService;
+import com.xhpc.common.security.service.TokenService;
import com.xhpc.order.service.IXhpcChargeOrderService;
import com.xhpc.order.service.IXhpcHistoryOrderService;
+import com.xhpc.system.api.model.LoginUser;
import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -39,26 +42,30 @@ public class XhpcChargeOrderController extends BaseController {
private IXhpcHistoryOrderService xhpcHistoryOrderService;
@Autowired
private WebSocketService webSocketService;
+ @Autowired
+ private RedisService redisService;
+ @Autowired
+ private TokenService tokenService;
private static final Logger logger = LoggerFactory.getLogger(XhpcChargeOrderController.class);
/**
* 实时订单(微信)
*/
@GetMapping("/getHistotyChargeOrderMessage")
- public AjaxResult getHistotyChargeOrderMessage(@RequestParam Long userId)
+ public AjaxResult getHistotyChargeOrderMessage(HttpServletRequest request)
{
- return iXhpcChargeOrderService.getHistotyChargeOrderMessage(userId);
+ return iXhpcChargeOrderService.getHistotyChargeOrderMessage(request);
}
/**
* 异常订单(微信)
*/
@GetMapping("/getHistotyChargeOrderStatusList")
- public TableDataInfo getHistotyChargeOrderStatusList(@RequestParam Long userId)
+ public TableDataInfo getHistotyChargeOrderStatusList(HttpServletRequest request)
{
startPage();
- List