Commit 6dddb3dd authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 7f7d0d5a
......@@ -61,9 +61,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import java.net.URL;
......@@ -142,11 +139,8 @@ public class DeviceApiController {
* @return
*/
@PostMapping("register")
public String register(@RequestBody DeviceReq req) {
public String register(HttpServletRequest request,@RequestBody DeviceReq req) {
log.info("【设备注册】【请求体】--> " + JSONObject.toJSONString(req));
RequestAttributes requstAttr = RequestContextHolder.getRequestAttributes();
HttpServletRequest request = ((ServletRequestAttributes) requstAttr).getRequest();
log.info("request uri:{},request url:{}",request.getRequestURI(),request.getRequestURL());
//ServletUtil.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment