Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fd0adbb3
由
LN
编写于
2020-01-15 09:45:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
高度修改
1 个父辈
7f90f9b6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
11 行删除
source/Common/util/HttpHelper.cs
source/DeviceLibrary/IO/AIOBOX/AIOAIManager.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/Common/util/HttpHelper.cs
查看文件 @
fd0adbb
...
@@ -111,7 +111,7 @@ namespace OnlineStore.Common
...
@@ -111,7 +111,7 @@ namespace OnlineStore.Common
}
}
catch
(
Exception
e
)
catch
(
Exception
e
)
{
{
LogUtil
.
error
(
LOGGER
,
"POST ERROR:"
+
e
.
StackTrace
,
1
);
LogUtil
.
error
(
LOGGER
,
"POST ERROR:"
+
e
.
ToString
()
,
1
);
}
}
if
(!
result
.
Contains
(
"null"
)
&&
result
.
Length
!=
0
)
if
(!
result
.
Contains
(
"null"
)
&&
result
.
Length
!=
0
)
{
{
...
...
source/DeviceLibrary/IO/AIOBOX/AIOAIManager.cs
查看文件 @
fd0adbb
...
@@ -133,13 +133,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -133,13 +133,13 @@ namespace OnlineStore.DeviceLibrary
}
}
public
override
double
GetAIValue
(
string
ioiP
,
int
index
)
public
override
double
GetAIValue
(
string
ioiP
,
int
index
)
{
{
if
(
AIValList
!=
null
&&
AIValList
.
Count
>
index
)
if
(
AIValList
!=
null
&&
index
>=
0
&&
AIValList
.
Count
>
index
)
{
{
return
AIValList
[
index
];
return
AIValList
[
index
];
}
}
return
-
1
;
return
0
;
}
}
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
fd0adbb
...
@@ -1495,16 +1495,27 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1495,16 +1495,27 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
public
int
GetHeight
()
public
int
GetHeight
()
{
{
int
value
=
Get13Height
();
if
(
Config
.
Default_TrayWidth
.
Equals
(
7
))
if
(
value
>
0
)
{
return
Get7Height
();
}
else
if
(
Config
.
Default_TrayWidth
.
Equals
(
13
))
{
{
return
value
;
return
Get13Height
()
;
}
}
else
else
{
{
return
Get7Height
();
int
value
=
Get13Height
();
}
if
(
value
>
0
)
{
return
value
;
}
else
{
return
Get7Height
();
}
}
}
}
private
int
Get7Height
()
private
int
Get7Height
()
{
{
...
@@ -1527,7 +1538,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1527,7 +1538,7 @@ namespace OnlineStore.DeviceLibrary
private
int
Get13Height
()
private
int
Get13Height
()
{
{
if
(
Config
.
AIDI3_Addr
<
0
)
if
(
Config
.
AIDI3_Addr
<
0
||
Config
.
AIDI4_Addr
<
0
)
{
{
return
0
;
return
0
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论