tanghc 5 years ago
parent 8537ea8a70
commit 626fd3a8e4
  1. 6
      sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/controller/ConfigChannelController.java

@ -14,8 +14,8 @@ import com.gitee.sop.gatewaycommon.secret.IsvManager;
import com.gitee.sop.gatewaycommon.util.RequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
@ -26,7 +26,7 @@ import java.util.Map;
* @author tanghc
*/
@Slf4j
@Controller
@RestController
public class ConfigChannelController {
private static Map<String, Class<? extends ChannelMsgProcessor>> processorMap = new HashMap<>(16);
@ -43,7 +43,7 @@ public class ConfigChannelController {
@Value("${zuul.secret}")
private String secret;
@PostMapping("/sop/configChannelMsg")
@PostMapping("/configChannelMsg")
public String configChannel(HttpServletRequest request) throws IOException {
String requestJson = RequestUtil.getText(request);
String sign = request.getHeader("sign");

Loading…
Cancel
Save