|
@ -31,8 +31,8 @@ public class JyKitService {
|
|
|
|
|
|
@Value("${juye.companyCode}")
|
|
@Value("${juye.companyCode}")
|
|
private String companyCode;
|
|
private String companyCode;
|
|
@Value("${juye.url}")
|
|
|
|
private String jyUrl;
|
|
|
|
|
|
// @Value("${juye.url}")
|
|
|
|
private String jyUrl="http://zayata.ocip.net:30080/index.php?s=/Company/Device/";
|
|
// @Value("${juye.token}")
|
|
// @Value("${juye.token}")
|
|
// private String token;
|
|
// private String token;
|
|
@Autowired
|
|
@Autowired
|
|
@ -142,7 +142,7 @@ public class JyKitService {
|
|
*/
|
|
*/
|
|
public String getJuyeToken() throws Exception{
|
|
public String getJuyeToken() throws Exception{
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
String response = getRequestPost(params,getKitSetInfo);
|
|
|
|
|
|
String response = getRequestPost(params,getKitToken);
|
|
JSONObject returnJson = JSONObject.fromObject(response);
|
|
JSONObject returnJson = JSONObject.fromObject(response);
|
|
if (returnJson.getInt("status") != 200) {
|
|
if (returnJson.getInt("status") != 200) {
|
|
throw new Exception("jy kitInfo error status not 200");
|
|
throw new Exception("jy kitInfo error status not 200");
|