|
@@ -290,7 +290,9 @@ public class DataUtil {
|
|
|
try {
|
|
try {
|
|
|
String mes_server_ip = MesClient.mes_server_ip;
|
|
String mes_server_ip = MesClient.mes_server_ip;
|
|
|
String url = "http://"+mes_server_ip+":8980/js/a/mes/mesLaser/getSteelSn";
|
|
String url = "http://"+mes_server_ip+":8980/js/a/mes/mesLaser/getSteelSn";
|
|
|
- String params = "__ajax=json&customerSn="+customerSn.trim();
|
|
|
|
|
|
|
+ // URL 编码客户码,避免 + 号被解析为空格
|
|
|
|
|
+ String encodedSn = customerSn.trim().replace("+", "%2B");
|
|
|
|
|
+ String params = "__ajax=json&customerSn="+encodedSn;
|
|
|
System.out.println("[查询钢印码] params="+params);
|
|
System.out.println("[查询钢印码] params="+params);
|
|
|
String result = doPost(url, params);
|
|
String result = doPost(url, params);
|
|
|
System.out.println("[查询钢印码] result="+result);
|
|
System.out.println("[查询钢印码] result="+result);
|