| | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.yeshi.utils.JsonUtil; |
| | | import org.yeshi.utils.TimeUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.PrintWriter; |
| | |
| | | System.out.println(map); |
| | | } |
| | | |
| | | @RequestMapping("funtv") |
| | | public void funtv() { |
| | | funTVUtil.startParseAll(); |
| | | } |
| | | |
| | | @RequestMapping("logback") |
| | | public void logback(PrintWriter out) { |
| | | logger.error("测试"); |
| | | out.print("success"); |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping("getTime") |
| | | public void getTime(PrintWriter out) { |
| | | |
| | | long time = System.currentTimeMillis(); |
| | | |
| | | String str = TimeUtil.getGernalTime(time, "yyyyMMdd HH:mm:ss"); |
| | | |
| | | out.print(String.format("time: %s format:%s", time + "", str)); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("searchAlbum") |
| | | public void searchAlbum(String key, PrintWriter out) { |
| | | SearchService.SearchResult result = searchService.searchAlbum(0, key, null,1, 20); |
| | | SearchService.SearchResult result = searchService.searchAlbum(0, key, null, 1, 20, false); |
| | | out.print(JsonUtil.loadTrueResult(result)); |
| | | } |
| | | |