admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
utils/src/main/java/org/yeshi/utils/wx/WXXCXUtil.java
@@ -16,7 +16,6 @@
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;
@@ -26,9 +25,7 @@
   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", );
@@ -37,7 +34,11 @@
      //
      // data.put("line_color", color);
      return HttpUtil.postForInputstream(url, data.toString());
      try {
         return HttpUtil.postForInputstream(url, data.toString());
      } catch (Exception e) {
         return null;
      }
   }
   // 获取有限的小程序码