微信后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
577 B

package com.ynxbd.wx.wxfactory;
import com.ynxbd.common.helper.http.OkHttpHelper;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class WxMiniHelper {
public static String auth(String jsCode) {
String respJson = OkHttpHelper.get("https://api.weixin.qq.com/sns/jscode2session", params -> {
params.put("appid", "appid");
params.put("secret", "secret");
params.put("js_code", jsCode);
params.put("grant_type", "authorization_code");
});
log.info("respJson:{}", respJson);
return null;
}
}