接口代码优化调整
This commit is contained in:
@@ -632,23 +632,23 @@ public class MoneyApiController {
|
||||
int countback = 5;
|
||||
if(StringUtils.equals("H",resolution)){
|
||||
to = (long) (System.currentTimeMillis() / 1000);
|
||||
from = to - (5 * 24 * 60 * 60 );
|
||||
countback = 10;
|
||||
request.setResolution("60");
|
||||
from = to - (1 * 60 * 60 );
|
||||
countback = 60;
|
||||
request.setResolution("1");
|
||||
}else if(StringUtils.equals("D",resolution)){
|
||||
to = (long) (System.currentTimeMillis() / 1000);
|
||||
from = to - (10 * 24 * 60 * 60 );
|
||||
countback = 5;
|
||||
request.setResolution("1D");
|
||||
from = to - (24 * 60 * 60 );
|
||||
countback = 9;
|
||||
request.setResolution("60");
|
||||
}else if(StringUtils.equals("W",resolution)){
|
||||
to = (long) (System.currentTimeMillis() / 1000);
|
||||
from = to - (15 * 24 * 60 * 60 );
|
||||
countback = 5;
|
||||
request.setResolution("1W");
|
||||
from = to - (10 * 24 * 60 * 60 );
|
||||
countback = 7;
|
||||
request.setResolution("1D");
|
||||
}else if(StringUtils.equals("M",resolution)){
|
||||
to = (long) (System.currentTimeMillis() / 1000);
|
||||
from = to - (365 * 24 * 60 * 60 );
|
||||
countback = 10;
|
||||
from = to - (35 * 24 * 60 * 60 );
|
||||
countback = 30;
|
||||
request.setResolution("1D");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user