| @@ -12,10 +12,6 @@ import org.slf4j.LoggerFactory; | |||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import java.io.IOException; | |||||
| import java.io.InputStream; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("/wxOpen") | @RequestMapping("/wxOpen") | ||||
| public class WechatCalllbackController extends BaseController { | public class WechatCalllbackController extends BaseController { | ||||
| @@ -24,7 +20,7 @@ public class WechatCalllbackController extends BaseController { | |||||
| @Autowired | @Autowired | ||||
| protected WxOpenService wxOpenService; | protected WxOpenService wxOpenService; | ||||
| @RequestMapping("/notify") | |||||
| @RequestMapping(value = "/notify", consumes = "text/xml;charset=UTF-8") | |||||
| public Object receiveTicket(@RequestBody(required = false) String requestBody, @RequestParam("timestamp") String timestamp, | public Object receiveTicket(@RequestBody(required = false) String requestBody, @RequestParam("timestamp") String timestamp, | ||||
| @RequestParam("nonce") String nonce, @RequestParam("signature") String signature, | @RequestParam("nonce") String nonce, @RequestParam("signature") String signature, | ||||
| @RequestParam(name = "encrypt_type", required = false) String encType, | @RequestParam(name = "encrypt_type", required = false) String encType, | ||||