From e0007aa6cc9dd4530d0dd944acf60981643aebc0 Mon Sep 17 00:00:00 2001 From: xiaoliuhu Date: Mon, 29 Apr 2024 14:10:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96money=E8=82=A1=E7=A5=A8K?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE1w=E5=92=8C1m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/stock/market/web/MoneyApiController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/cn/stock/market/web/MoneyApiController.java b/src/main/java/cn/stock/market/web/MoneyApiController.java index e318289..acfd693 100644 --- a/src/main/java/cn/stock/market/web/MoneyApiController.java +++ b/src/main/java/cn/stock/market/web/MoneyApiController.java @@ -687,14 +687,14 @@ public class MoneyApiController { request.setResolution("1"); }else if(StringUtils.equals("W",resolution)){ to = (long) (System.currentTimeMillis() / 1000); - from = to - (10 * 24 * 60 * 60 ); - countback = 30; - request.setResolution("1D"); + from = to - (7 * 24 * 60 * 60 ); + countback = 471; + request.setResolution("5"); }else if(StringUtils.equals("M",resolution)){ to = (long) (System.currentTimeMillis() / 1000); from = to - (35 * 24 * 60 * 60 ); - countback = 30; - request.setResolution("1D"); + countback = 328; + request.setResolution("30"); } request.setFrom(from);