|
@@ -38,6 +38,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
+import java.text.ParseException;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
@@ -301,6 +302,14 @@ public class KuaiShouVideoGetController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public static void main(String[] args) throws ParseException {
|
|
|
+ String endMonth = DateUtils.getNowDate("yyyy-MM");
|
|
|
+ String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
+ String startMonthStr = DateUtils.addMonth(nowDate, -5);
|
|
|
+ String startMonth = DateUtils.formatDate(startMonthStr, "yyyy-MM");
|
|
|
+ System.err.println(startMonth);
|
|
|
+ }
|
|
|
+
|
|
|
public static Map<String, Object> parseJSON2Map(String jsonStr) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
JSONObject json = JSONObject.parseObject(jsonStr);
|