main
周文涛 2 years ago
parent 66999005c6
commit 998d915ee3

@ -30,7 +30,8 @@ public class IotController {
@ApiOperation(value = "获取单个设备信息")
@GetMapping(value = "/devices")
public Result<?> devices(@RequestParam(value = "serial",defaultValue = "")String serial,@RequestParam(value = "productId",defaultValue = "")String productId){
AssertUtils.notEmpty(serial,"请输入-[serial]");AssertUtils.notEmpty(productId,"请输入-[productId]");
AssertUtils.notEmpty(serial,"请输入-[serial]");
//AssertUtils.notEmpty(productId,"请输入-[productId]");
JSONObject requestBody=new JSONObject();
requestBody.put("serial",serial);
requestBody.put("productId",productId);

Loading…
Cancel
Save