Prechádzať zdrojové kódy

修改激活验证的漏洞, 新增运行时激活验证

Administrator 3 rokov pred
rodič
commit
4baf0386c3

+ 2 - 2
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/com/zedu/cocos/congming/app/request/OkgoApi.java

@@ -5,8 +5,8 @@ package com.zedu.cocos.congming.app.request;
  */
 public class OkgoApi {
 
-//    public static final String HOST = "api.zhi-edu.com";
-     public static final String HOST = "192.168.0.120";
+    public static final String HOST = "api.zhi-edu.com";
+//     public static final String HOST = "192.168.0.120";
 
     // ============公共
 

+ 8 - 0
build/jsb-link/frameworks/runtime-src/proj.android-studio/lib_core/src/main/java/com/zedu/support/request/OkgoClientCache.java

@@ -111,4 +111,12 @@ public class OkgoClientCache {
                 .retryCount(RETRY_COUNT)// 重试
                 .execute(callback);
     }
+
+    public static String getDefaultCacheKey(String url, HttpParams params){
+        // 请求路径
+        url = String.format(url, host);
+        // 缓存key
+        String key = MD5Coder.getMD5Code(url + "?" + SignParams.getSortParams(params));
+        return key;
+    }
 }