From 4c6fe78903856c5c418d0746eddaa51d9d28e216 Mon Sep 17 00:00:00 2001 From: yiyan Date: Tue, 18 Jun 2019 09:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E5=A8=81=E5=8F=82=E6=95=B0=E6=96=B0?= =?UTF-8?q?=E5=A2=9EsessionID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ifish/gwell/GwellApi.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ifish/gwell/GwellApi.java b/src/main/java/com/ifish/gwell/GwellApi.java index 740c151..732bfbe 100644 --- a/src/main/java/com/ifish/gwell/GwellApi.java +++ b/src/main/java/com/ifish/gwell/GwellApi.java @@ -171,10 +171,14 @@ public class GwellApi { if(error_code.equals("0")){ String P2PVerifyCode1 = json.getString("P2PVerifyCode1"); String P2PVerifyCode2 = json.getString("P2PVerifyCode2"); + String SessionID = json.getString("SessionID"); + String SessionID2 = json.getString("SessionID2"); String UserID = json.getString("UserID"); map.put("result", GwellEnum.success.getKey()); map.put("P2PVerifyCode1", P2PVerifyCode1); map.put("P2PVerifyCode2", P2PVerifyCode2); + map.put("SessionID", SessionID); + map.put("SessionID2", SessionID2); map.put("UserID", UserID); return map; } @@ -218,7 +222,9 @@ public class GwellApi { public static void main(String[] args) { - Register("15216102193"); + Map register = Login("18501773036"); + System.out.println(register); + } }