|
@@ -1102,9 +1102,10 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
{
|
|
{
|
|
|
clientSocket.Connect(new IPEndPoint(ip, SN_SERVICE_PORT));
|
|
clientSocket.Connect(new IPEndPoint(ip, SN_SERVICE_PORT));
|
|
|
}
|
|
}
|
|
|
- catch
|
|
|
|
|
|
|
+ catch(Exception ex)
|
|
|
{
|
|
{
|
|
|
nRet = -13;
|
|
nRet = -13;
|
|
|
|
|
+ dh.ExecuteSql("insert into getdataerror(id,err,datetime)values(getdataerror_seq.nextval,'"+ex.Message+ex.StackTrace+"',sysdate)", "insert");
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
try
|
|
try
|
|
@@ -1118,9 +1119,10 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
Array.Copy(bytJson, 0, bytBuf, FACT_DATA_HEAD.MY_LEN, bytJson.Length);
|
|
Array.Copy(bytJson, 0, bytBuf, FACT_DATA_HEAD.MY_LEN, bytJson.Length);
|
|
|
clientSocket.Send(bytBuf);
|
|
clientSocket.Send(bytBuf);
|
|
|
}
|
|
}
|
|
|
- catch
|
|
|
|
|
|
|
+ catch(Exception ex)
|
|
|
{
|
|
{
|
|
|
nRet = -12;
|
|
nRet = -12;
|
|
|
|
|
+ dh.ExecuteSql("insert into getdataerror(id,err,datetime)values(getdataerror_seq.nextval,'" + ex.Message + ex.StackTrace + "',sysdate)", "insert");
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
//判定接口回传的flag和本地传过去的是否一致
|
|
//判定接口回传的flag和本地传过去的是否一致
|