|
@ -31,6 +31,8 @@ public class JyKitService {
|
|
|
|
|
|
@Value("${juye.companyCode}")
|
|
|
private String companyCode;
|
|
|
@Value("${juye.companySecret}")
|
|
|
private String companySecret;
|
|
|
@Value("${juye.url}")
|
|
|
private String jyUrl;
|
|
|
@Autowired
|
|
@ -186,6 +188,7 @@ public class JyKitService {
|
|
|
*/
|
|
|
public String getRequestPost(List<NameValuePair> params,String url) throws Exception{
|
|
|
params.add(new BasicNameValuePair("company_code", companyCode));
|
|
|
params.add(new BasicNameValuePair("company_secret", companySecret));
|
|
|
String response = httpClientUtil.post(url, params, "UTF-8");
|
|
|
return response;
|
|
|
}
|
|
@ -198,7 +201,7 @@ public class JyKitService {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public String getRequestGet(List<NameValuePair> params,String url) throws Exception{
|
|
|
String paramStr="?company_code="+companyCode;
|
|
|
String paramStr="?company_code="+companyCode+"&company_secret="+companySecret;
|
|
|
for(NameValuePair one : params){
|
|
|
paramStr += "&"+one.getName()+"="+one.getValue();
|
|
|
}
|