feat: 提交
This commit is contained in:
		@@ -55,7 +55,61 @@ test('cutOrderTest', async () => {
 | 
				
			|||||||
        input,
 | 
					        input,
 | 
				
			||||||
        params
 | 
					        params
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    await cutOrderProc.exec(context)
 | 
					
 | 
				
			||||||
 | 
					    let demo = {
 | 
				
			||||||
 | 
					        "input": {
 | 
				
			||||||
 | 
					            "boardWidth": 1220,
 | 
				
			||||||
 | 
					            "boardLength": 2440,
 | 
				
			||||||
 | 
					            "gap": 6,
 | 
				
			||||||
 | 
					            "blocks": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "id": "1905521077598027776",
 | 
				
			||||||
 | 
					                    "width": 600,
 | 
				
			||||||
 | 
					                    "length": 400,
 | 
				
			||||||
 | 
					                    "waveType": 0,
 | 
				
			||||||
 | 
					                    "x": 3,
 | 
				
			||||||
 | 
					                    "y": 3
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "id": "1905521077635776512",
 | 
				
			||||||
 | 
					                    "width": 600,
 | 
				
			||||||
 | 
					                    "length": 400,
 | 
				
			||||||
 | 
					                    "waveType": 0,
 | 
				
			||||||
 | 
					                    "x": 404,
 | 
				
			||||||
 | 
					                    "y": 3
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "id": "1905521077656748032",
 | 
				
			||||||
 | 
					                    "width": 600,
 | 
				
			||||||
 | 
					                    "length": 400,
 | 
				
			||||||
 | 
					                    "waveType": 0,
 | 
				
			||||||
 | 
					                    "x": 805,
 | 
				
			||||||
 | 
					                    "y": 3
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "id": "1905521077681913856",
 | 
				
			||||||
 | 
					                    "width": 600,
 | 
				
			||||||
 | 
					                    "length": 400,
 | 
				
			||||||
 | 
					                    "waveType": 0,
 | 
				
			||||||
 | 
					                    "x": 1206,
 | 
				
			||||||
 | 
					                    "y": 3
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "id": "1905521077707079680",
 | 
				
			||||||
 | 
					                    "width": 600,
 | 
				
			||||||
 | 
					                    "length": 400,
 | 
				
			||||||
 | 
					                    "waveType": 0,
 | 
				
			||||||
 | 
					                    "x": 1607,
 | 
				
			||||||
 | 
					                    "y": 3
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "params": {
 | 
				
			||||||
 | 
					            "name": "",
 | 
				
			||||||
 | 
					            "version": "1.0.0"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    await cutOrderProc.exec(demo)
 | 
				
			||||||
    // 将在context的output中显示结果
 | 
					    // 将在context的output中显示结果
 | 
				
			||||||
    console.log(context);
 | 
					    console.log(demo);
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
		Reference in New Issue
	
	Block a user