baibx пре 1 месец
родитељ
комит
c065b5f494

+ 1 - 0
com.shuhaiwifi.web.auth2/src/main/java/com/shuhaiwifi/web/auth2/iot/Iot.java

@@ -17,6 +17,7 @@ public class Iot
17 17
 	public static int lxqh=13;//龙鑫青海移动
18 18
 	public static int lxgz=14;//龙鑫贵州移动
19 19
 	public static int whhnyd=15;//文航河南移动
20
+	public static int kfgd=16;//科锋广东
20 21
 
21 22
 	public static String getOprtStr(String iccid)
22 23
 	{

+ 12 - 0
com.shuhaiwifi.web.auth2/src/main/java/com/shuhaiwifi/web/auth2/iot/ThirdToken.java

@@ -290,6 +290,18 @@ public class ThirdToken {
290 290
                 resJson = JSONObject.parseObject(resJson.getString("data"));
291 291
                 token=resJson.getString("token");
292 292
             }
293
+        }
294
+        if(kasid==Iot.kfgd) {
295
+            String url = "http://kfyd.kfkj8021.com/prod-api/ec/getBoToken";
296
+            logger.info("kfgd queryAuthToken>>>"+url);
297
+            Map<String, Object> body = new HashMap<>();
298
+            body.put("appId", "asdgkkjhnhu9642");
299
+            body.put("password", "jbkbhcfshhj9853");
300
+            String content=HttpUtil.createPost(url).body(JSONObject.toJSONString(body), "application/json").execute().body();
301
+            logger.info("kfgd>>"+content);
302
+            JSONObject resJson = JSONObject.parseObject(content);
303
+            token = resJson.getString("token");
304
+            logger.info(token);
293 305
         }
294 306
 		return token;
295 307
 	}