Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d14bfd22
由
刘韬
编写于
2022-08-03 11:37:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
退料接口500错误处理
1 个父辈
e463272d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
2 行删除
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.cs
RC1266-AutoCountMachine/source/DeviceLibrary/manager/SServerManager.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.cs
查看文件 @
d14bfd2
...
@@ -1081,7 +1081,7 @@ namespace OnlineStore.AutoCountClient
...
@@ -1081,7 +1081,7 @@ namespace OnlineStore.AutoCountClient
LogUtil
.
info
(
Name
+
" 点击:"
+
启用贴标功能
ToolStripMenuItem
.
Text
);
LogUtil
.
info
(
Name
+
" 点击:"
+
启用贴标功能
ToolStripMenuItem
.
Text
);
}
}
private
static
string
Addr_updateDeviceAlarmMsg
=
"http://1
0.85.199.25
/myproject/rest/api/qisda/device/updateDeviceAlarmMsg"
;
private
static
string
Addr_updateDeviceAlarmMsg
=
"http://1
72.16.77.86
/myproject/rest/api/qisda/device/updateDeviceAlarmMsg"
;
List
<
AlarmMsg
>
msglist
=
new
List
<
AlarmMsg
>();
List
<
AlarmMsg
>
msglist
=
new
List
<
AlarmMsg
>();
MyWebClient
myWebClient
=
new
MyWebClient
(
1000
);
MyWebClient
myWebClient
=
new
MyWebClient
(
1000
);
/// <summary>
/// <summary>
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/manager/SServerManager.cs
查看文件 @
d14bfd2
...
@@ -117,6 +117,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -117,6 +117,10 @@ namespace OnlineStore.DeviceLibrary
//【<?xml version="1.0" encoding="utf-8"?>< string xmlns = "http://tempuri.org/" > NG 不可退料 厂别:ST </ string >】
//【<?xml version="1.0" encoding="utf-8"?>< string xmlns = "http://tempuri.org/" > NG 不可退料 厂别:ST </ string >】
LogUtil
.
info
(
deviceName
+
"Return_Material "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
LogUtil
.
info
(
deviceName
+
"Return_Material "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
if
(
string
.
IsNullOrWhiteSpace
(
resultStr
))
{
msg
=
"Return_Material接口出错,NG处理"
;
}
//resultStr = "<?xml version=\"1.0\" encoding=\"utf - 8\"?>< string xmlns = \"http://tempuri.org/\" > NG 不可退料 厂别:ST </ string >";
//resultStr = "<?xml version=\"1.0\" encoding=\"utf - 8\"?>< string xmlns = \"http://tempuri.org/\" > NG 不可退料 厂别:ST </ string >";
if
(
resultStr
.
Contains
(
"NG"
))
if
(
resultStr
.
Contains
(
"NG"
))
{
{
...
@@ -172,7 +176,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -172,7 +176,7 @@ namespace OnlineStore.DeviceLibrary
return
false
;
return
false
;
}
}
string
resultStr
=
HttpHelper
.
Get
(
"http://1
0.85.199.25
/myproject/rest/api/qisda/device/resolveCode?code="
+
codeArray
[
1
],
Encoding
.
UTF8
,
1000
);
string
resultStr
=
HttpHelper
.
Get
(
"http://1
72.16.77.86
/myproject/rest/api/qisda/device/resolveCode?code="
+
codeArray
[
1
],
Encoding
.
UTF8
,
1000
);
ServerResult
serverResult
=
JsonHelper
.
DeserializeJsonToObject
<
ServerResult
>(
resultStr
);
ServerResult
serverResult
=
JsonHelper
.
DeserializeJsonToObject
<
ServerResult
>(
resultStr
);
if
(
serverResult
.
code
==
0
)
{
if
(
serverResult
.
code
==
0
)
{
reelResult
=
serverResult
.
data
;
reelResult
=
serverResult
.
data
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论