Bladeren bron

调整接口

tianboguang 3 jaren geleden
bovenliggende
commit
171c1d5864
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      platform-api/src/main/java/com/platform/api/ApiCouponController.java

+ 1 - 1
platform-api/src/main/java/com/platform/api/ApiCouponController.java

@@ -153,7 +153,7 @@ public class ApiCouponController extends ApiBaseAction {
         List<CouponVo> couponVoList = resultPage.getRecords();
         List<CouponVo> resultCouponVoList = new ArrayList<>();
         if(!CollectionUtils.isEmpty(couponVoList)){
-            Long userId = (Long) request.getAttribute(LOGIN_USER_KEY);
+            Long userId = getUserId();
             if(null == userId){
                 throw new CommonBaseException(ResultCodeEnum.D101 , "获取不到客户ID");
             }