|
|
@ -19,6 +19,7 @@ import javax.annotation.Resource;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@Api(tags = {"设备接入接口"})
|
|
|
|
@Api(tags = {"设备接入接口"})
|
|
|
@ -37,7 +38,7 @@ public class MntnController extends BaseController {
|
|
|
|
String url = req.getRequestURI();
|
|
|
|
String url = req.getRequestURI();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String multi = req.getHeader("Accept-Cmds");
|
|
|
|
String multi = req.getHeader("Accept-Cmds");
|
|
|
|
HashMap<String, Object> map = JSONUtil.json2Object(data, HashMap.class);
|
|
|
|
Map<String, Object> map = JSONUtil.json2Object(data, Map.class);
|
|
|
|
String cmdid = (String) map.get("id");
|
|
|
|
String cmdid = (String) map.get("id");
|
|
|
|
if (StringUtils.isBlank(cmdid)) {
|
|
|
|
if (StringUtils.isBlank(cmdid)) {
|
|
|
|
throw new ApiException("id不能为空");
|
|
|
|
throw new ApiException("id不能为空");
|
|
|
|