ソースを参照

fix 处理对外接口

tjf 3 年 前
コミット
d73ccaa54e

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/utils/AESUtil.java

@@ -50,7 +50,7 @@ public class AESUtil {
         return new String(original);
     }
 
-    public static void main(String[] args) {
+/*    public static void main(String[] args) {
         Map<String, Object> businessParams = new HashMap<>();
         String aseKey = "6717c09c65fd487bb61e6710613faa20";
         businessParams.put("idCard", "110102196610122373");
@@ -86,5 +86,5 @@ public class AESUtil {
         } catch (Exception e) {
             e.printStackTrace();
         }
-    }
+    }*/
 }

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/utils/RSAUtil.java

@@ -304,7 +304,7 @@ public class RSAUtil {
         uuid = uuid.replace("-", "");
         return uuid;
     }
-    public static void main(String[] args) throws Exception {
+/*    public static void main(String[] args) throws Exception {
         //业务参数
         Map<String,Object>  businessParams = new HashMap<>();
         businessParams.put("id_card","340104");
@@ -364,5 +364,5 @@ public class RSAUtil {
         } catch (Exception e) {
             throw new RuntimeException("请求参数解密异常");
         }
-    }
+    }*/
 }

+ 1 - 1
boman-web-core/src/main/resources/mapper/IpTimesMapper.xml

@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
 
     <select id="countByUsername" resultType="com.alibaba.fastjson.JSONObject">
-        select id,app_id as appId,ip, table_name as tableName,times ,column_names as columnNames,app_key as appKey,app_secret as appSecret,is_strong as isStrong from ip_times where app_key = #{app_key} and app_secret = #{app_secret};
+        select id,app_id as appId,ip, table_name as tableName,times ,column_names as columnNames,app_key as appKey,app_secret as appSecret,is_strong as isStrong from ip_times where app_key = #{appKey} and app_secret = #{appSecret};
     </select>
 
     <insert id="save">