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