Merge branch 'master' of https://gitee.com/mini-org-project/course_information_center_java
This commit is contained in:
commit
12f4bd8944
|
@ -60,13 +60,19 @@ public class httpController extends JeecgController<TBks, ITBksService> {
|
|||
.addPath("/cgi-bin")
|
||||
.addPath("/plat.cgi")
|
||||
.addQuery("action", "9")
|
||||
.addQuery("command", "1")
|
||||
.addQuery("user", x.getUser())
|
||||
.addQuery("pwsd", SecureUtil.md5(x.getMima()))
|
||||
.addQuery("command", "1")
|
||||
.addQuery("data", hex)
|
||||
.build();
|
||||
String res = HttpUtil.get(buildUrl);
|
||||
log.info("奥威亚返回接口内容:" + res);
|
||||
log.info("访问奥威亚接口地址"+buildUrl);
|
||||
try{
|
||||
|
||||
String res = HttpUtil.get(buildUrl);
|
||||
log.info("奥威亚返回接口内容:" + res);//live_setParam_ret=ok
|
||||
} catch (Exception e){
|
||||
log.error(e.getMessage(),e);
|
||||
}
|
||||
//解析,决定最后返回结果
|
||||
});
|
||||
}else{
|
||||
|
@ -75,4 +81,24 @@ public class httpController extends JeecgController<TBks, ITBksService> {
|
|||
//URL url = new URL("www.hutool.cn")
|
||||
return Result.ok("操作成功");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String hex = Convert.toHex("live_setParam_enable=1", CharsetUtil.CHARSET_UTF_8);//开始
|
||||
//String hex = Convert.toHex("live_setParam_enable=0", CharsetUtil.CHARSET_UTF_8);//停止
|
||||
String buildUrl = UrlBuilder.create()
|
||||
.setScheme("http")
|
||||
.setHost("10.68.100.2")
|
||||
.addPath("/cgi-bin")
|
||||
.addPath("/plat.cgi")
|
||||
.addQuery("action", "9")
|
||||
.addQuery("user", "admin")
|
||||
.addQuery("pwsd", SecureUtil.md5("admin"))
|
||||
.addQuery("command", "1")
|
||||
.addQuery("data", hex)
|
||||
.build();
|
||||
// String res = HttpUtil.get("http://live555.com/liveMedia/#config-windows");
|
||||
log.info(buildUrl);
|
||||
String res = HttpUtil.get("http://localhost:8090/jeecg-boot/sys/getLoginQrcode?action=9&command=1&user=admin&pwsd=21232f297a57a5a743894a0e4a801fc3&data=6c6976655f736574506172616d5f656e61626c653d31");
|
||||
log.info("奥威亚返回接口内容:" + res);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue