|
|
@@ -342,8 +342,10 @@ public class DataUtil {
|
|
|
BufferedReader br = new BufferedReader(new InputStreamReader(is, enconding));
|
|
|
pro.load(br);
|
|
|
String mes_server_ip = pro.getProperty("mes.server_ip");
|
|
|
- String url = "http://"+mes_server_ip+":8980/js/a/mes/mesProductLaser/getSteelSn";
|
|
|
- String params = "__ajax=json&customerSn="+customerSn;
|
|
|
+ String url = "http://"+mes_server_ip+":8980/js/a/mes/mesLaser/getSteelSn";
|
|
|
+ // customerSn 带 '+' 号,form-urlencoded 传输时 '+' 会被解码为空格,必须编码
|
|
|
+ String encSn = java.net.URLEncoder.encode(customerSn, "UTF-8");
|
|
|
+ String params = "__ajax=json&customerSn="+encSn;
|
|
|
System.out.println("[查询钢印码] customerSn=" + customerSn);
|
|
|
String result = doPost(url, params);
|
|
|
System.out.println("[查询钢印码] result=" + result);
|