baibx hace 2 meses
padre
commit
4576a7b43a

+ 4 - 10
com.sharemao.core.task/src/main/java/com/sharemao/core/task/iot2/ct/CTAPI.java

@@ -666,8 +666,7 @@ public class CTAPI
666 666
 		return re;
667 667
 	}
668 668
 
669
-    public static int AuthStatus(int index,String iccid)
670
-    {
669
+    public static int AuthStatus(int index,String iccid) throws IOException {
671 670
         int res=-1;
672 671
 
673 672
         Operator op=account.get(index);
@@ -690,14 +689,9 @@ public class CTAPI
690 689
         header.put("Timestamp", timestamp);
691 690
 
692 691
         String content="";
693
-        try {
694
-            log.info(url+"=======>"+body+"=======>"+header);
695
-            content = HttpUtils.getContentByPost(url,body, header);
696
-            log.info(content);
697
-        } catch (IOException e) {
698
-            log.info(Tools.getExceptionMessage(e));
699
-            return res;
700
-        }
692
+        log.info(url+"=======>"+body+"=======>"+header);
693
+        content = HttpUtils.getContentByPost(url,body, header);
694
+        log.info(content);
701 695
         JSONObject resJson = JSONObject.parseObject(content);
702 696
         int resCode = resJson.getIntValue("code");
703 697
         if(resCode == 0)

+ 12 - 3
com.sharemao.core.task/src/main/java/com/sharemao/core/task/iot2/ct/RealNameV2.java

@@ -56,11 +56,20 @@ public class RealNameV2 {
56 56
                     result = BW.getRealname(iccid,resettm);
57 57
                 } else if (kasid==56 || kasid==61){
58 58
                     result = CTAPI.kfsdsm(token, iccid, kasid, resettm);
59
-                } else {
60
-                    /*if (kasid==81 || kasid==82 || kasid==86 || kasid==87){
59
+                } else if (kasid==28 || kasid==29 || kasid==30 || kasid==31 || kasid==37 || kasid==81 || kasid==82 || kasid==83 || kasid==86 || kasid==87){
60
+                    try {
61 61
                         iccid=iccid.substring(0,19);
62 62
                         int k=CTAPI.AuthStatus(kasid, iccid);
63
-                    }*/
63
+                        result= new HashMap<>();
64
+                        result.put("retime", "");
65
+                        result.put("re", k==30005?"已实名":"未实名");
66
+                    } catch (Exception e) {
67
+                        result= new HashMap<>();
68
+                        result.put("retime", "");
69
+                        result.put("re", e.getMessage());
70
+                        log.info(Tools.getExceptionMessage(e));
71
+                    }
72
+                } else {
64 73
                     result = CTAPI.sm(token, iccid,kasid,resettm);
65 74
                 }
66 75
                 String status=result.get("re");

+ 1 - 1
com.sharemao.web.xw3/src/main/webapp/mifi.jsp

@@ -12,7 +12,7 @@
12 12
     <meta name="applicable-device" content="mobile">
13 13
     <meta name="format-detection" content="telephone=no" />
14 14
     <meta http-equiv="title" content="" />
15
-    <title>设备信息</title>
15
+    <title>品质为先,不虚标不限速</title>
16 16
     <meta name="description" content="" />
17 17
     <meta name="keywords" content="" />
18 18
     <link rel="stylesheet" href="/static/css/animate.min.css" type="text/css" media="all" />