|
|
|
@@ -31,9 +31,6 @@ import com.simple.service.WxUserVisitService; |
|
|
|
public class WxAppVisitSchedule {
|
|
|
|
|
|
|
|
private Logger logger = Logger.getLogger(WxAppVisitSchedule.class);
|
|
|
|
|
|
|
|
private static String token="https://api.weixin.qq.com/cgi-bin/token?"+
|
|
|
|
"grant_type=client_credential&appid=APPID&secret=APPSECRET";
|
|
|
|
|
|
|
|
private static String visit = "https://api.weixin.qq.com/datacube/getweanalysisappiddailyvisittrend?access_token=";
|
|
|
|
|
|
|
|
@@ -123,6 +120,8 @@ public class WxAppVisitSchedule { |
|
|
|
|
|
|
|
private String getAccessToken(String appId,String appSecret) {
|
|
|
|
// return "13_rBo3ajS3jjd8OXZ2MLd4HfLrmt78gvaCeRtu-Xme0iC0fhs_lNS47aLPEwI8kfZQIMKnWYshY5wpaf2IoSI7tgVBm7WwVrm_Bg96J31VPKi8pEp8yB6JiTpDcWkpwv5GngiH2vDkwz7VHOsPLBYcAGAZPM";
|
|
|
|
String token="https://api.weixin.qq.com/cgi-bin/token?"+
|
|
|
|
"grant_type=client_credential&appid=APPID&secret=APPSECRET";
|
|
|
|
String url = token.replace("APPID", appId).
|
|
|
|
replace("APPSECRET", appSecret);
|
|
|
|
Map<String,Object> map = restTemplate.getForObject(url,Map.class);
|
|
|
|
|