WXControl.java 884 Bytes
package com.sincere.haikangface.control;

import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("微信企业号接口")
@RequestMapping("wx/*")
public class WXControl {


    @RequestMapping(value = "checkUrl",method = RequestMethod.GET)
    public String checkUrl(@RequestParam("msg_signature")String msg_signature, @RequestParam("timestamp")long timestamp
    , @RequestParam("nonce")String nonce,@RequestParam("echostr")String echostr){

System.out.println("msg_signature:"+msg_signature+" timestamp:"+timestamp+" nonce:"+nonce+" echostr:"+echostr);
        return echostr;

    }

}