Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO775-DUOStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 65fbb6a3
由
刘韬
编写于
2022-05-30 12:08:35 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
466f9a6d
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
source/DeviceLibrary/duoStore/StoreManager.cs
source/DeviceLibrary/duoStore/StoreManager.cs
查看文件 @
65fbb6a
...
@@ -8,6 +8,7 @@ using System.IO;
...
@@ -8,6 +8,7 @@ using System.IO;
using
System.IO.Ports
;
using
System.IO.Ports
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
...
@@ -462,6 +463,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -462,6 +463,7 @@ namespace OnlineStore.DeviceLibrary
private
static
readonly
string
Addr_putShelfFinished
=
"/rest/api/dcs/device/putShelfFinished"
;
private
static
readonly
string
Addr_putShelfFinished
=
"/rest/api/dcs/device/putShelfFinished"
;
public
static
string
putShelfFinished
(
string
deviceName
,
string
shelfNum
,
string
rfidLoc
,
string
barcode
)
public
static
string
putShelfFinished
(
string
deviceName
,
string
shelfNum
,
string
rfidLoc
,
string
barcode
)
{
{
retry
:
string
msg
=
""
;
string
msg
=
""
;
try
try
{
{
...
@@ -479,7 +481,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -479,7 +481,9 @@ namespace OnlineStore.DeviceLibrary
if
(
data
==
null
)
if
(
data
==
null
)
{
{
return
msg
=
deviceName
+
" putShelfFinished【 "
+
barcode
+
"】 没有收到服务器反馈"
;
Thread
.
Sleep
(
1000
);
goto
retry
;
//return msg = deviceName + " putShelfFinished【 " + barcode + "】 没有收到服务器反馈";
}
}
else
if
(
data
.
code
.
Equals
(
0
).
Equals
(
false
))
else
if
(
data
.
code
.
Equals
(
0
).
Equals
(
false
))
{
{
...
@@ -491,6 +495,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -491,6 +495,8 @@ namespace OnlineStore.DeviceLibrary
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
deviceName
+
" "
+
ex
.
ToString
());
LogUtil
.
error
(
deviceName
+
" "
+
ex
.
ToString
());
Thread
.
Sleep
(
1000
);
goto
retry
;
}
}
return
msg
;
return
msg
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论