Browse Source

RFID参数更新

master
xia 2 years ago
parent
commit
6fd91efa8f
  1. 13
      archives/src/main/java/com/storeroom/modules/archives/controller/RFIDController.java

13
archives/src/main/java/com/storeroom/modules/archives/controller/RFIDController.java

@ -97,11 +97,16 @@ public class RFIDController {
String result = "";
try {
HttpClient client = HttpClients.createDefault();
// String url = "http://" + ip + "/api/RFIDInterface/RFID_WriteEPC?sDevID=" + sDevID
// + "&EAS=" + EAS
// + "&Type=" + Type
// + "&Code=" + Code
// + "&Tid=" + Tid;
String url = "http://" + ip + "/api/RFIDInterface/RFID_WriteEPC?sDevID=" + sDevID
+ "&EAS=" + EAS
+ "&Type=" + Type
+ "&Code=" + Code
+ "&Tid=" + Tid;
+ "&nEas=" + EAS
+ "&nType=" + Type
+ "&sCodeID=" + Code
+ "&sTid=" + Tid;
HttpGet httpGet = new HttpGet(url);
httpGet.setHeader("Content-Type", "application/x-www-form-urlencoded");
System.out.println("调用URL: " + httpGet.getURI());

Loading…
Cancel
Save