diff --git a/lib/doudian-sdk-java-1.1.0-20230914091533.jar b/lib/doudian-sdk-java-1.1.0-20230914091533.jar deleted file mode 100644 index 216e59a..0000000 Binary files a/lib/doudian-sdk-java-1.1.0-20230914091533.jar and /dev/null differ diff --git a/lib/doudian-sdk-java-1.1.0-20231027170318.jar b/lib/doudian-sdk-java-1.1.0-20231027170318.jar deleted file mode 100644 index dcc6471..0000000 Binary files a/lib/doudian-sdk-java-1.1.0-20231027170318.jar and /dev/null differ diff --git a/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java b/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java index 4b7d531..829f159 100644 --- a/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java @@ -367,7 +367,7 @@ public class DsMessageServiceImpl implements DsMessageService { skuRefundInfosItem.setAddress(address); skuRefundInfosItem.setCloseReason(""); skuRefundInfosItem.setOperationType(getOperateType(refundInfo)); - skuRefundInfosItem.setAftersaleType((long) getAftersaleType(refundInfo)); + skuRefundInfosItem.setAftersaleType(getAftersaleType(refundInfo)); return skuRefundInfosItem; } diff --git a/ms-biz/src/main/java/com/ms/biz/task/RefreshTokenTaskService.java b/ms-biz/src/main/java/com/ms/biz/task/RefreshTokenTaskService.java index 888fcb7..968d4da 100644 --- a/ms-biz/src/main/java/com/ms/biz/task/RefreshTokenTaskService.java +++ b/ms-biz/src/main/java/com/ms/biz/task/RefreshTokenTaskService.java @@ -88,12 +88,6 @@ public class RefreshTokenTaskService extends TaskBaseService { List shops = (List) params; for (int i=0; i < shops.size(); i++) { Shop shop = shops.get(i); - Long shopId = shop.getShopId(); - // 不理解 -// $failCnt = $this->redis->hGet($redisKey, $shopId); -// if ($failCnt > 5) { -// continue; -// } String oldAccessToken = SecurityTool.decodeByAES(shop.getAccessToken()); String oldRefreshToken = SecurityTool.decodeByAES(shop.getRefreshToken()); TokenRefreshRequest request = new TokenRefreshRequest(); @@ -117,7 +111,7 @@ public class RefreshTokenTaskService extends TaskBaseService { shop.setAccessToken(SecurityTool.encodeByAES(newAccessToken)); log.info("oldAccessToken:"+oldAccessToken); log.info("newAccessToken"+newAccessToken); - shop.setGmtExpire(DateUtil.parseDateTime(TimeTool.getDateTimeBySeconds(new Long(newExpires).intValue()))); + shop.setGmtExpire(DateUtil.parseDateTime(TimeTool.getDateTimeBySeconds(newExpires.intValue()))); shop.setGmtModified(DateUtil.parseDateTime(TimeTool.getDateTimeBySeconds(0))); shopService.updateByPrimaryKey(shop); } diff --git a/ms-web/src/main/java/com/ms/web/controller/Test.java b/ms-web/src/main/java/com/ms/web/controller/Test.java index f491542..83ad8f6 100644 --- a/ms-web/src/main/java/com/ms/web/controller/Test.java +++ b/ms-web/src/main/java/com/ms/web/controller/Test.java @@ -189,27 +189,27 @@ public class Test { } } - @PostMapping("/getAuthInfo") + @RequestMapping("/getAuthInfo") public String getAuthInfo() { // 30459766L GetAuthInfoResponseDTO responseDTO = dsApiService.getAuthInfo(1111502210L); System.out.println(responseDTO); return ""; } - @PostMapping("/getAuthShopMemberInfos") + @RequestMapping("/getAuthShopMemberInfos") public String getAuthShopMemberInfos() { GetAuthShopMemberInfosResponseDTO responseDTO = dsApiService.getAuthShopMemberInfos(1111502210L); System.out.println(responseDTO); return ""; } - @PostMapping("/checkDsAppAuthExpire") + @RequestMapping("/checkDsAppAuthExpire") public String checkDsAppAuthExpire() { - CheckDsAppAuthExpireResponseDTO responseDTO = dsApiService.checkDsAppAuthExpire(16412356L, "", ""); + CheckDsAppAuthExpireResponseDTO responseDTO = dsApiService.checkDsAppAuthExpire(1111502210L, "", ""); System.out.println(responseDTO); return ""; } - @PostMapping("/getProductDetail") + @RequestMapping("/getProductDetail") public String getProductDetail() { AuthThreadLocalUtil.set("4463798"); SupplyCenterCargoDetailParam supplyCenterCargoDetailParam = new SupplyCenterCargoDetailParam(); @@ -219,7 +219,7 @@ public class Test { return ""; } - @PostMapping("/getSourceItemInfos") + @RequestMapping("/getSourceItemInfos") public String getSourceItemInfos() { GetSourceItemInfosResponseDTO responseDTO = dsApiService.getSourceItemInfos(30459766L, Collections.singletonList("601601136855")); System.out.println(responseDTO);