package com.ks.tool.bkz.controller;
|
|
import com.ks.tool.bkz.util.UrlUtil;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import java.util.Map;
|
|
@Controller
|
@RequestMapping("parse")
|
public class ParseController {
|
|
@RequestMapping("getRequestUrl")
|
@ResponseBody
|
public String getRequestUrl(String baseUrl, String data) {
|
|
String host = UrlUtil.getHost(baseUrl);
|
Map<String, String> params = UrlUtil.getParamsMap(baseUrl);
|
//获取data
|
// if(params.put())
|
|
|
return "";
|
}
|
|
|
/**
|
* 上传cookie
|
*
|
* @param cookies
|
* @return
|
*/
|
|
public String uploadCookie(String cookies) {
|
|
|
return "";
|
}
|
|
|
}
|