Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit eabc27d3
由
张东亮
编写于
2023-04-13 09:14:37 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
0f12dc1c
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
eabc27d
...
@@ -217,18 +217,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -217,18 +217,21 @@ namespace OnlineStore.DeviceLibrary
operation
.
op
=
1
;
operation
.
op
=
1
;
operation
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
this
.
DeviceID
.
ToString
()
}
};
operation
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
this
.
DeviceID
.
ToString
()
}
};
operation
.
data
.
Add
(
"inPos"
,
posId
);
operation
.
data
.
Add
(
"inPos"
,
posId
);
for
(
int
i
=
1
;
i
<
5
;
i
++)
{
{
bool
timeOut
=
false
;
bool
timeOut
=
false
;
Operation
resultOperation
=
HttpHelper
.
PostOperation
(
SServerManager
.
GetPostApi
(
server
),
operation
);
Operation
resultOperation
=
HttpHelper
.
PostOperation
(
SServerManager
.
GetPostApi
(
server
),
operation
);
LogUtil
.
info
(
$
"入库验证请求信息【{operation.seq}】【{resultOperation?.seq ?? -1}】:【{JsonHelper.SerializeObject(operation)}】【{JsonHelper.SerializeObject(resultOperation)}】"
);
LogUtil
.
info
(
$
"入库验证请求信息【{operation.seq}】【{resultOperation?.seq ?? -1}】:【{JsonHelper.SerializeObject(operation)}】【{JsonHelper.SerializeObject(resultOperation)}】"
);
if
(
timeOut
)
if
(
timeOut
)
{
{
LogUtil
.
error
(
logName
+
" 发送超时 "
);
LogUtil
.
error
(
logName
+
$
" 发送{i}超时 "
);
Thread
.
Sleep
(
1000
);
}
}
if
(
resultOperation
==
null
)
if
(
resultOperation
==
null
)
{
{
// CodeMsg = "二维码【" + message + "】没有收到服务器反馈";
// CodeMsg = "二维码【" + message + "】没有收到服务器反馈";
LogUtil
.
error
(
logName
+
" 没有收到服务器反馈 "
);
LogUtil
.
error
(
logName
+
" 没有收到服务器反馈 "
);
Thread
.
Sleep
(
1000
);
}
}
else
if
(!
string
.
IsNullOrEmpty
(
resultOperation
.
msg
))
else
if
(!
string
.
IsNullOrEmpty
(
resultOperation
.
msg
))
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论