|
|
@ -17,10 +17,7 @@ import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.util.DigestUtils; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.io.IOException; |
|
|
@ -135,7 +132,7 @@ public class ShellController { |
|
|
|
*/ |
|
|
|
@PostMapping("/apiSecret") |
|
|
|
@Log(title = "远程行对接qad", businessType = BusinessType.INSERT, isManager = false) |
|
|
|
public AjaxResult apiSecret(HttpServletRequest request, @RequestBody String body) throws IOException, JSchException { |
|
|
|
public AjaxResult apiSecret(HttpServletRequest request, @RequestParam String body) throws IOException, JSchException { |
|
|
|
System.out.println("接收到的body:" + body); |
|
|
|
String interfaceName = request.getHeader("interface"); |
|
|
|
System.out.println("接收到的interface:" + interfaceName); |
|
|
@ -210,4 +207,7 @@ public class ShellController { |
|
|
|
return linuxAccessService.executeShell(linuxAccess, qadAccess, traceid, inJson, domain); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|