From 43d11becdfc0d7af00b10e91b962cd0c4738bbf1 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期一, 11 十二月 2023 10:41:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/java/com/hx/mp/util/CorpMpUtil.java |   27 ++-------------------------
 1 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/src/main/java/com/hx/mp/util/CorpMpUtil.java b/src/main/java/com/hx/mp/util/CorpMpUtil.java
index 757ee08..8dd010b 100644
--- a/src/main/java/com/hx/mp/util/CorpMpUtil.java
+++ b/src/main/java/com/hx/mp/util/CorpMpUtil.java
@@ -1,13 +1,12 @@
 package com.hx.mp.util;
 
-import com.hx.corp.entity.AppLetInfo;
+import com.hx.util.corp.entity.AppLetInfo;
 import com.hx.exception.TipsException;
 import com.hx.util.HttpMethodUtil;
 import com.hx.util.StringUtils;
 import net.sf.json.JSONException;
 import net.sf.json.JSONObject;
 import org.apache.commons.io.IOUtils;
-import org.apache.poi.util.SystemOutLogger;
 
 import java.io.OutputStream;
 import java.net.HttpURLConnection;
@@ -43,8 +42,7 @@
     public static final String URL_INFO_USER = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token={0}&userid={1}";
     /**鍙戦�佹秷鎭�*/
     public static final String URL_MESSAGE_SEND = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=";
-    /*鐢熸垚灏忕▼搴忛摼鎺�*/
-    public static final String URL_LINK = "https://api.weixin.qq.com/wxa/generate_urllink";
+
 
     /**
      * 娣诲姞宸ヤ綔浜哄憳
@@ -346,25 +344,4 @@
         return obj;
     }
 
-    /**
-     * 鐢熸垚灏忕▼搴忛摼鎺�
-     * @param path 閫氳繃 URL Link 杩涘叆鐨勫皬绋嬪簭椤甸潰璺緞锛屽繀椤绘槸宸茬粡鍙戝竷鐨勫皬绋嬪簭瀛樺湪鐨勯〉闈紝涓嶅彲鎼哄甫 query 銆俻ath 涓虹┖鏃朵細璺宠浆灏忕▼搴忎富椤�
-     * @param token 鎺ュ彛璋冪敤鍑瘉锛岃鍙傛暟涓� URL 鍙傛暟锛岄潪 Body 鍙傛暟銆備娇鐢╣etAccessToken 鎴栬��
-     * @param env_version 榛樿鍊�"release"銆傝鎵撳紑鐨勫皬绋嬪簭鐗堟湰銆傛寮忕増涓� "release"锛屼綋楠岀増涓�"trial"锛屽紑鍙戠増涓�"develop"锛屼粎鍦ㄥ井淇″鎵撳紑鏃剁敓鏁堛��
-     * @param query 閫氳繃 URL Link 杩涘叆灏忕▼搴忔椂鐨剄uery锛屾渶澶�1024涓瓧绗︼紝鍙敮鎸佹暟瀛楋紝澶у皬鍐欒嫳鏂囦互鍙婇儴鍒嗙壒娈婂瓧绗︼細!#$&'()*+,/:;=?@-._~%
-     * @return appLetInfo
-     */
-    public static AppLetInfo getAppLetUrl(String path, String token, String env_version, String query) {
-        Map<String, Object> map = new HashMap();
-        map.put("access_token", token);
-        com.alibaba.fastjson.JSONObject data = new com.alibaba.fastjson.JSONObject();
-        data.put("path", path);
-        data.put("env_version", env_version);
-        if (!StringUtils.isEmpty(query)){
-            data.put("query", query);
-        }
-        String datas = HttpMethodUtil.HttpURLUtilJson(URL_LINK, data.toString(), map, (Map)null, "POST");
-        AppLetInfo appLetInfo = com.alibaba.fastjson.JSONObject.parseObject(datas, AppLetInfo.class);
-        return appLetInfo;
-    }
 }

--
Gitblit v1.8.0