1
czw
8 天以前 43c6d046302ca075c1f42b0105a5fbad0d889fc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
{
  "ProjectSn": "",
  "Directory": "",
  "Databases": [
    {
      "ID": "20250324101838895",
      "Name": "sql",
      "Desc": "2",
      "DataSource": "DESKTOP-DSS9VVU",
      "Database": "OIDATABASE",
      "UserID": "sa",
      "Password": "aux!123",
      "Timeout": 3,
      "IsDefault": true,
      "Type": "SqlServer",
      "Special": [
        "TrimEndSpace"
      ]
    }
  ],
  "Redis": [
    {
      "ID": "20250226153123845",
      "Name": "默认Redis",
      "Desc": "默认",
      "ServerIP": "127.0.0.1",
      "ServerPort": 6379,
      "Auth": "",
      "DB": "DB0",
      "MaxReadPool": 1000,
      "MaxWritePool": 1000,
      "IsDefault": true,
      "Host": "127.0.0.1:6379",
      "FullName": "Conn.默认Redis"
    }
  ],
  "Sqlite": [
    {
      "ID": "20250226153123845",
      "Name": "默认日志",
      "Desc": "默认",
      "DbDir": "D:\\WCS.LogDB",
      "DbFile": "S7Log",
      "DbPath": "D:\\WCS.LogDB\\S7Log",
      "AppName": "AuxAllWCS",
      "DelDays": 30,
      "DelLevel": 3,
      "IsLogInfo": true,
      "IsLogDebug": true,
      "IsLogWarn": true,
      "IsLogError": true,
      "IsDefault": true,
      "FullName": "Conn.默认日志"
    }
  ],
  "AppConfs": [],
  "DefaultAppConfs": [
    {
      "ID": "20250226153123845",
      "Key": "InstanceLimit",
      "Value": "1",
      "Desc": "启动实例数量限制",
      "Rule": "^^([1-9][0-9]*)$",
      "Visible": true
    },
    {
      "ID": "20250226153123845",
      "Key": "AutoRunPlc",
      "Value": "1",
      "Desc": "是否自动启动PLC(1是,0否)",
      "Rule": "^[0-1]$",
      "Visible": true
    },
    {
      "ID": "20250226153123845",
      "Key": "LogDir",
      "Value": "D:\\WCS.LogDB",
      "Desc": "日志目录",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogFile",
      "Value": "S7Log",
      "Desc": "日志文件名",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogDelDays",
      "Value": "30",
      "Desc": "日志保存期限(天)",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogDelLevel",
      "Value": "3",
      "Desc": "日志删除等级",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogDebug",
      "Value": "1",
      "Desc": "是否开启调试日志Debug(1是,0否)",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogInfo",
      "Value": "1",
      "Desc": "是否开启通知日志Info(1是,0否)",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogWarn",
      "Value": "1",
      "Desc": "是否开启警告日志Warn(1是,0否)",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "LogError",
      "Value": "1",
      "Desc": "是否开启错误日志Error(1是,0否)",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "RedisServerSession",
      "Value": "127.0.0.1:6379",
      "Desc": "Redis服务地址",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "RedisMaxReadPool",
      "Value": "1000",
      "Desc": "Redis读取池",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250226153123845",
      "Key": "RedisMaxWritePool",
      "Value": "1000",
      "Desc": "Redis写入池",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250306140529536",
      "Key": "AutoRunPLC",
      "Value": "1",
      "Desc": "是否自动启动PLC(1是,0否)",
      "Rule": "^[0-1]$",
      "Visible": true
    },
    {
      "ID": "20250323094727985",
      "Key": "RedisDefaultDb",
      "Value": "DB0",
      "Desc": "Redis数据库",
      "Rule": "",
      "Visible": false
    },
    {
      "ID": "20250612214902893",
      "Key": "sql_TrimEndSpace",
      "Value": "true",
      "Desc": "sql去除char(n)末尾空格",
      "Rule": "",
      "Visible": false
    }
  ],
  "WebSvc": [],
  "HttpSvc": [
    {
      "ID": "20250323130313908",
      "Code": "cddc17eb-398d-4781-b24a-62baec9f680b",
      "Name": "he",
      "Desc": "",
      "IP": "10.221.55.117",
      "Port": "8808",
      "EndPoint": "10.221.55.117:8808",
      "Url": "http://10.221.55.117:8808/",
      "Interface": [
        {
          "ID": "20250323130424925",
          "Name": "agvCallback",
          "Desc": "",
          "Method": "POST",
          "RawUrl": "/agv/agvCallbackService/agvCallback",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": "\r\n                                        LogHelper.Info(\"ExecuteState Request-haikang:\" + requestJson);\r\n                                        var model = JsonConvert.DeserializeObject<HaiKangOrderInfo>(requestJson);\r\n                                        OperateHKTaskStatus(model);\r\n                                        return JsonConvert.SerializeObject(new HkReturnResult { reqCode = model.reqCode });",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        },
        {
          "ID": "20250323132451759",
          "Name": "Index",
          "Desc": "返回单页",
          "Method": "GET",
          "RawUrl": "/inddddddddddddddddd",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": " // 复制到case 上\r\n //var _ when System.Text.RegularExpressions.Regex.IsMatch(path, @\"\\.(html|ico|js|css)(\\?.*)?$\", System.Text.RegularExpressions.RegexOptions.IgnoreCase)\r\n var filePath = /*Directory.GetCurrentDirectory() + \"\\\\Static\" + \"\\\\\" + path.Substring(1);*/System.IO.Path.Combine(Directory.GetCurrentDirectory() + \"\\\\Static\", path.Substring(1));\r\n return File.ReadAllText(filePath);",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        },
        {
          "ID": "20250531151614198",
          "Name": "CreateTask",
          "Desc": "MES 任务下发",
          "Method": "POST",
          "RawUrl": "/api/Wcs/CreateTask",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": "\r\n                                        LogHelper.Info(\"/api/Wcs/CreateTask:\" + requestJson);\r\n                                        var model = JsonConvert.DeserializeObject<ToWMSMES.CreateTask>(requestJson);\r\n                                        var res = ToWMSMES.CreateTask.CreatemesTask(model);\r\n                                        return JsonConvert.SerializeObject(res);",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        },
        {
          "ID": "20250531151746358",
          "Name": "TestRequestTask",
          "Desc": "机械口请求任务接口",
          "Method": "POST",
          "RawUrl": "/api/Wcs/TestRequestTask",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": "LogHelper.Info(\"/api/Wcs/TestRequestTask:\" + requestJson);\r\nvar str = Settings.apiHelper.Post(Settings.WMSbaseUrl + \"mom-basic/dataTransmission/json/service/200\", requestJson);\r\nreturn str;",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        },
        {
          "ID": "20250531151956740",
          "Name": "updateStatus",
          "Desc": "任务状态上报接口",
          "Method": "POST",
          "RawUrl": "/api/Wcs/updateStatus",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": "LogHelper.Info(\"/api/Wcs/updateStatus:\" + requestJson);\r\nvar str = Settings.apiHelper.Post(Settings.WMSbaseUrl + \"mom-basic/dataTransmission/json/service/201\", requestJson);\r\nreturn str;",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        },
        {
          "ID": "20250531152110369",
          "Name": "toMes",
          "Desc": "托盘上报校验接口(包含托盘校验、绑拖和过账)",
          "Method": "POST",
          "RawUrl": "/api/Wcs/toMes",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": "\r\n                                        LogHelper.Info(\"/api/Wcs/toMes:\" + requestJson);\r\n                                        var str = Settings.apiHelper.Post(Settings.MESbaseUrl + \"mom-basic/dataTransmission/json/service/202\", requestJson);\r\n                                        return str;",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        },
        {
          "ID": "20250611210008036",
          "Name": "CreatePointTask",
          "Desc": "",
          "Method": "POST",
          "RawUrl": "/api/Wcs/CreatePointTask",
          "Response": "System.String",
          "Request": [
            {
              "ID": "1",
              "Name": "requestJson",
              "Desc": "请求报文json",
              "Type": "System.String"
            }
          ],
          "Content": "\r\n                                        LogHelper.Info(\"/api/Wcs/CreatepointTask:\" + requestJson);\r\n                                        var model = JsonConvert.DeserializeObject<ToWMSMES.CreateTask>(requestJson);\r\n                                        var res = ToWMSMES.CreateTask.CreatePointTask(model);\r\n                                        return JsonConvert.SerializeObject(res);",
          "ContentType": "application/json",
          "ReqParamStr": "System.String requestJson",
          "ReqParamTypeStr": "System.String"
        }
      ]
    }
  ],
  "CreationTime": "2025-02-26 15:31:23",
  "LastWriteTime": "2025-07-10 14:16:54"
}