Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 95391fc1
由
LN
编写于
2020-05-07 18:47:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
http修改
1 个父辈
31f643d3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
4 行删除
source/Common/util/MyWebClient.cs
source/DeviceLibrary/assemblyLine/OutTrayLineBean.cs
source/DeviceLibrary/assemblymanager/SServerManager.cs
source/Common/util/MyWebClient.cs
查看文件 @
95391fc
...
...
@@ -42,8 +42,10 @@ namespace OnlineStore.Common
protected
override
WebRequest
GetWebRequest
(
Uri
address
)
{
var
result
=
base
.
GetWebRequest
(
address
);
HttpWebRequest
result
=(
HttpWebRequest
)
base
.
GetWebRequest
(
address
);
result
.
Timeout
=
this
.
_timeout
;
result
.
KeepAlive
=
false
;
result
.
ServicePoint
.
Expect100Continue
=
false
;
return
result
;
}
}
...
...
@@ -102,7 +104,7 @@ namespace OnlineStore.Common
try
{
var
wc
=
new
MyWebClient
(
10000
);
var
wc
=
new
MyWebClient
(
timeOut
);
if
(
string
.
IsNullOrEmpty
(
wc
.
Headers
[
"Content-Type"
]))
wc
.
Headers
.
Add
(
"Content-Type"
,
"application/json;charset=UTF-8"
);
wc
.
Encoding
=
encoding
;
...
...
source/DeviceLibrary/assemblyLine/OutTrayLineBean.cs
查看文件 @
95391fc
...
...
@@ -427,7 +427,7 @@ namespace OnlineStore.DeviceLibrary
isRestart
=
true
;
canWhileCount
--;
LogUtil
.
info
(
subType
+
" 异常停止,重新开始转动:["
+
moveDO
+
"] ["
+
checkDI
+
"] 耗时 ["
+
FormUtil
.
GetSpanStr
(
span
)
+
"]["
+
canWhileCount
+
"]"
);
LineRunAndWait
(
moveDO
,
checkDI
,
timeOutMS
);
return
LineRunAndWait
(
moveDO
,
checkDI
,
timeOutMS
);
}
isStop
=
true
;
}
...
...
source/DeviceLibrary/assemblymanager/SServerManager.cs
查看文件 @
95391fc
...
...
@@ -433,7 +433,7 @@ namespace OnlineStore.DeviceLibrary
// 取消任务地址: /cancelPutInTask //参数: barcode
private
static
string
Addr_cancelPutInTask
=
"/cancelPutInTask"
;
private
static
string
Addr_cancelPutInTask
=
"/
rest/api/qisda/device/
cancelPutInTask"
;
public
static
string
cancelPutInTask
(
string
deviceName
,
string
barcode
)
{
string
msg
=
""
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论