feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能
This commit is contained in:
@@ -19,9 +19,9 @@ import (
|
||||
func taskCurrentHandler(ctx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
stationNo := atoi(strings.TrimSpace(r.URL.Query().Get("stationNo")), 0)
|
||||
// 0=上线位为合法虚拟工位,仅负数视为未配置
|
||||
if stationNo < 0 {
|
||||
fail(w, http.StatusBadRequest, "缺少 stationNo 参数")
|
||||
// 工位号须为正整数(原 0/13 虚拟位已废弃,业务定稿·一.10)
|
||||
if stationNo <= 0 {
|
||||
fail(w, http.StatusBadRequest, "缺少有效的 stationNo 参数")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user