ky 5 years ago
parent db8e5abeb4
commit ff5b43dbdb

@ -7,7 +7,7 @@
<groupId>yhjd</groupId> <groupId>yhjd</groupId>
<artifactId>yhjd</artifactId> <artifactId>yhjd</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging> <packaging>jar</packaging>
<name>yhjd</name> <name>yhjd</name>

@ -28,8 +28,6 @@ public class MissonController {
@Autowired @Autowired
MissonServiceImpl missonService; MissonServiceImpl missonService;
private final WxMpService wxService;
@PostMapping("/addMisson") @PostMapping("/addMisson")
@ApiOperation(value = "增加misson", notes = "增加misson") @ApiOperation(value = "增加misson", notes = "增加misson")
@ResponseBody @ResponseBody

@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
@Slf4j @Slf4j
@AllArgsConstructor @AllArgsConstructor
@RestController @RestController
@RequestMapping("/wx/portal/") @RequestMapping("/wx/portal/{appid}")
public class WxPortalController { public class WxPortalController {
private final WxMpService wxService; private final WxMpService wxService;
private final WxMpMessageRouter messageRouter; private final WxMpMessageRouter messageRouter;
@ -34,7 +34,7 @@ public class WxPortalController {
} }
if (!this.wxService.switchover(appid)) { 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)) { if (wxService.checkSignature(timestamp, nonce, signature)) {

Loading…
Cancel
Save