Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cb1630b9
由
LN
编写于
2019-08-16 18:40:38 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
66887678
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
18 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
cb1630b
...
@@ -1398,30 +1398,37 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1398,30 +1398,37 @@ namespace OnlineStore.DeviceLibrary
return
;
return
;
}
}
isInProcess
=
true
;
isInProcess
=
true
;
if
(
StoreManager
.
IsConnectServer
)
try
{
{
try
if
(
LineConnect
.
IsConnect
())
{
{
SendLineStatus
();
int
hasTray
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
int
ss
=
(
int
)
storeStatus
;
if
(
IsDebug
)
{
ss
=
(
int
)
StoreStatus
.
Debugging
;
}
LineConnect
.
SendHeart
(
Config
.
Id
,
Config
.
CID
,
(
int
)
ss
,
(
int
)
storeRunStatus
,
hasTray
,
(
int
)
alarmType
);
}
}
catch
(
Exception
ex
)
if
(
StoreManager
.
IsConnectServer
)
{
{
LOGGER
.
Error
(
"定时给服务器发送消息出错:"
,
ex
);
try
{
SendLineStatus
();
}
catch
(
Exception
ex
)
{
LOGGER
.
Error
(
"定时给服务器发送消息出错:"
,
ex
);
}
}
}
}
if
(
LineConnect
.
IsConnect
())
HumitureController
.
QueryData
();
HumidityProcess
();
LedProcess
();
}
catch
(
Exception
ex
)
{
{
int
hasTray
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
LogUtil
.
error
(
"server_connect_timer_Tick出错:"
+
ex
.
ToString
());
int
ss
=
(
int
)
storeStatus
;
if
(
IsDebug
)
{
ss
=
(
int
)
StoreStatus
.
Debugging
;
}
LineConnect
.
SendHeart
(
Config
.
Id
,
Config
.
CID
,
(
int
)
ss
,
(
int
)
storeRunStatus
,
hasTray
,
(
int
)
alarmType
);
}
}
HumitureController
.
QueryData
();
HumidityProcess
();
LedProcess
();
isInProcess
=
false
;
isInProcess
=
false
;
}
}
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
cb1630b
...
@@ -141,7 +141,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -141,7 +141,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
LogUtil
.
info
(
"收到消息:"
+
message
);
LogUtil
.
debug
(
"收到消息:"
+
message
);
}
}
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论