| | |
| | | import org.yeshi.utils.entity.wx.WXMPSessionInfo;
|
| | | import org.yeshi.utils.entity.wx.WXMPUserInfo;
|
| | |
|
| | | import com.aliyun.openservices.shade.io.netty.util.internal.StringUtil;
|
| | | import com.google.gson.Gson;
|
| | |
|
| | | import net.sf.json.JSONObject;
|
| | |
| | | public static InputStream getXCXCode(String accessToken, String path, String scene) {
|
| | | String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken;
|
| | | JSONObject data = new JSONObject();
|
| | |
|
| | | data.put("scene", "123123,12312321123");
|
| | |
|
| | | data.put("scene", scene);
|
| | | data.put("page", path);
|
| | | // JSONObject color = new JSONObject();
|
| | | // color.put("r", );
|
| | |
| | | //
|
| | | // data.put("line_color", color);
|
| | |
|
| | | return HttpUtil.postForInputstream(url, data.toString());
|
| | | try {
|
| | | return HttpUtil.postForInputstream(url, data.toString());
|
| | | } catch (Exception e) {
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | // 获取有限的小程序码
|