|
|
|
@@ -12,10 +12,6 @@ import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/wxOpen") |
|
|
|
public class WechatCalllbackController extends BaseController { |
|
|
|
@@ -24,7 +20,7 @@ public class WechatCalllbackController extends BaseController { |
|
|
|
@Autowired |
|
|
|
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, |
|
|
|
@RequestParam("nonce") String nonce, @RequestParam("signature") String signature, |
|
|
|
@RequestParam(name = "encrypt_type", required = false) String encType, |
|
|
|
|