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