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; } }