|
|
|
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@Slf4j
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/wx/portal/")
|
|
|
|
|
@RequestMapping("/wx/portal/{appid}")
|
|
|
|
|
public class WxPortalController {
|
|
|
|
|
private final WxMpService wxService;
|
|
|
|
|
private final WxMpMessageRouter messageRouter;
|
|
|
|
@ -34,7 +34,7 @@ public class WxPortalController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!this.wxService.switchover(appid)) {
|
|
|
|
|
throw new IllegalArgumentException(String.format("未找到对应appid=wx44742933fc151c65的配置,请核实!", appid));
|
|
|
|
|
throw new IllegalArgumentException(String.format("未找到对应appid=[%s]的配置,请核实!", appid));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wxService.checkSignature(timestamp, nonce, signature)) {
|
|
|
|
|