Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmartShelf
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cdab78be
由
LN
编写于
2020-04-24 18:49:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
e0cf11a4
全部展开
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
8 行删除
DeviceLibrary/Config/linePositions.csv
DeviceLibrary/manager/BOXManager.cs
DeviceLibrary/Config/linePositions.csv
查看文件 @
cdab78b
此文件的差异被折叠,
点击展开。
DeviceLibrary/manager/BOXManager.cs
查看文件 @
cdab78b
...
@@ -15,7 +15,7 @@ namespace SmartShelf.DeviceLibrary
...
@@ -15,7 +15,7 @@ namespace SmartShelf.DeviceLibrary
{
{
private
static
int
ServerPort
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
ServerPort
);
private
static
int
ServerPort
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
ServerPort
);
// private static readonly ILog LOGGER = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// private static readonly ILog LOGGER = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public
static
string
BoxName
=
"
单色灯料架
"
;
public
static
string
BoxName
=
"
Shelf
"
;
public
static
string
CID
=
""
;
public
static
string
CID
=
""
;
private
static
System
.
Timers
.
Timer
timersTimer
;
private
static
System
.
Timers
.
Timer
timersTimer
;
...
@@ -83,11 +83,11 @@ namespace SmartShelf.DeviceLibrary
...
@@ -83,11 +83,11 @@ namespace SmartShelf.DeviceLibrary
}
}
CID
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_CID
);
CID
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_CID
);
BoxName
=
(
" 单色灯料架_"
+
CID
+
"
"
).
ToUpper
();
//BoxName = (" 单色灯料架
").ToUpper();
if
(
LEDManager
.
DeviceLedType
.
Equals
(
1
)
||
LEDManager
.
DeviceLedType
.
Equals
(
2
))
//
if (LEDManager.DeviceLedType.Equals(1) || LEDManager.DeviceLedType.Equals(2))
{
//
{
BoxName
=
(
" 三色灯料架_"
+
CID
+
"
"
).
ToUpper
();
// BoxName = (" 三色灯料架
").ToUpper();
}
//
}
LogUtil
.
info
(
BoxName
+
"加载完成!"
);
LogUtil
.
info
(
BoxName
+
"加载完成!"
);
Init
();
Init
();
...
@@ -157,14 +157,14 @@ namespace SmartShelf.DeviceLibrary
...
@@ -157,14 +157,14 @@ namespace SmartShelf.DeviceLibrary
{
{
if
(!
LEDManager
.
CurrLedStatus
.
Equals
(
2
))
if
(!
LEDManager
.
CurrLedStatus
.
Equals
(
2
))
{
{
LEDManager
.
OpenStatusLights
(
"green"
);
//
LEDManager.OpenStatusLights("green");
}
}
}
}
else
else
{
{
if
(!
LEDManager
.
CurrLedStatus
.
Equals
(
1
))
if
(!
LEDManager
.
CurrLedStatus
.
Equals
(
1
))
{
{
LEDManager
.
OpenStatusLights
(
"yellow"
);
//
LEDManager.OpenStatusLights("yellow");
}
}
}
}
...
@@ -191,6 +191,8 @@ namespace SmartShelf.DeviceLibrary
...
@@ -191,6 +191,8 @@ namespace SmartShelf.DeviceLibrary
//rest/api/v1/shelf/allPosOff? color = green 指定灭灯的颜色,如果为空,所有灯全部熄灭
//rest/api/v1/shelf/allPosOff? color = green 指定灭灯的颜色,如果为空,所有灯全部熄灭
private
static
string
ServerOnReceived
(
string
reqPath
,
string
paramStr
)
private
static
string
ServerOnReceived
(
string
reqPath
,
string
paramStr
)
{
{
LogUtil
.
info
(
"ServerOnReceived ["
+
reqPath
+
"] ["
+
paramStr
+
"] "
);
paramStr
=
paramStr
.
Replace
(
"%23"
,
"#"
);
try
try
{
{
Dictionary
<
string
,
string
>
paramMap
=
GetParam
(
paramStr
);
Dictionary
<
string
,
string
>
paramMap
=
GetParam
(
paramStr
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论