From 85044334265bb1b9ef8aa9deeb2e1d24651851d8 Mon Sep 17 00:00:00 2001
From: ChenJiaHe <763432473@qq.com>
Date: 星期五, 29 一月 2021 12:30:34 +0800
Subject: [PATCH] 优化

---
 src/main/java/com/hx/mp/util/CorpMpUtil.java |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/hx/mp/util/CorpMpUtil.java b/src/main/java/com/hx/mp/util/CorpMpUtil.java
index bd83c76..ccd4824 100644
--- a/src/main/java/com/hx/mp/util/CorpMpUtil.java
+++ b/src/main/java/com/hx/mp/util/CorpMpUtil.java
@@ -103,7 +103,7 @@
     /**
      * 鍒犻櫎宸ヤ綔浜哄憳
      * @param at 璁块棶at
-     * @param userId 鐢ㄦ埛id
+     * @param userId 浼佷笟鐢ㄦ埛id
      * @return 杩斿洖
      */
     public static int deleteUser(String at, String userId) {
@@ -128,14 +128,26 @@
         obj.put("userid", userId);
 
         obj = HttpURLUtil(MessageFormat.format(URL_INFO_USER, at,userId), obj.toString());
-        System.out.println("userId:"+userId);
-        System.out.println("obj:"+obj.toString());
+
         if(obj != null) {
             return obj.optInt("errcode", -1);
         }
         return -1;
     }
 
+    /**
+     * 鑾峰彇浼佷笟鐢ㄦ埛淇℃伅
+     * @param at 璁块棶at
+     * @param userId 鐢ㄦ埛id
+     * @return 杩斿洖
+     */
+    public static JSONObject userData(String at, String userId) {
+        JSONObject obj = new JSONObject();
+        obj.put("userid", userId);
+
+        return obj = HttpURLUtil(MessageFormat.format(URL_INFO_USER, at,userId), obj.toString());
+    }
+
 
     /**
      * 娣诲姞閮ㄩ棬

--
Gitblit v1.8.0