Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-OutletEquip
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 09c2146a
由
LN
编写于
2021-04-17 13:09:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料架属于空位展示修改
1 个父辈
45422c2b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
5 行删除
source/DeviceLibrary/bean/EquipBean.cs
source/DeviceLibrary/mananger/HttpServer.cs
source/DeviceLibrary/bean/EquipBean.cs
查看文件 @
09c2146
...
@@ -769,7 +769,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -769,7 +769,7 @@ namespace OnlineStore.DeviceLibrary
CheckAxisAlarm
();
CheckAxisAlarm
();
ShowTimeLog
(
"轴报警检测完成"
);
ShowTimeLog
(
"轴报警检测完成"
);
}
}
ShelfEmptyProcess
();
foreach
(
WorkStation
shelf
in
StationMap
.
Values
)
foreach
(
WorkStation
shelf
in
StationMap
.
Values
)
{
{
shelf
.
TimerProcess
();
shelf
.
TimerProcess
();
...
...
source/DeviceLibrary/mananger/HttpServer.cs
查看文件 @
09c2146
...
@@ -41,7 +41,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -41,7 +41,7 @@ namespace OnlineStore.DeviceLibrary
string
json
=
HttpHelper
.
Post
(
url
,
""
,
2000
);
string
json
=
HttpHelper
.
Post
(
url
,
""
,
2000
);
if
(
rfids
!=
""
)
if
(
rfids
!=
""
)
{
{
LogUtil
.
info
(
"http :URL:"
+
url
+
" :Response:"
+
json
+
" 耗时["
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
"]"
);
LogUtil
.
debug
(
"http :URL:"
+
url
+
" :Response:"
+
json
+
" 耗时["
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
"]"
);
}
}
else
else
{
{
...
@@ -52,13 +52,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -52,13 +52,14 @@ namespace OnlineStore.DeviceLibrary
return
map
;
return
map
;
}
}
ResultData
result
=
JsonHelper
.
DeserializeJsonToObject
<
ResultData
>(
json
);
RFIDResultData
result
=
JsonHelper
.
DeserializeJsonToObject
<
RFIDResultData
>(
json
);
if
(
result
.
code
>=
0
||
(!
String
.
IsNullOrEmpty
(
result
.
msg
))){
if
(
result
.
code
>
0
||
result
.
data
==
null
)
{
LogUtil
.
error
(
"getShelfEmptySlot,rfids["
+
rfids
+
"]结果:code="
+
result
.
code
+
",msg="
+
result
.
msg
);
LogUtil
.
error
(
"getShelfEmptySlot,rfids["
+
rfids
+
"]结果:code="
+
result
.
code
+
",msg="
+
result
.
msg
);
}
}
else
else
{
{
map
=
(
Dictionary
<
string
,
int
>)(
result
.
data
)
;
map
=
result
.
data
;
return
map
;
return
map
;
}
}
}
}
...
@@ -354,6 +355,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -354,6 +355,14 @@ namespace OnlineStore.DeviceLibrary
public
object
data
{
get
;
set
;
}
public
object
data
{
get
;
set
;
}
}
}
public
class
RFIDResultData
{
public
int
code
{
get
;
set
;
}
public
string
msg
{
get
;
set
;
}
public
Dictionary
<
string
,
int
>
data
{
get
;
set
;
}
}
//public class ResultData
//public class ResultData
//{
//{
// //{"code":0,"msg":"ok","data":"7"}
// //{"code":0,"msg":"ok","data":"7"}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论