2 Commits 6ae978956a ... 1321a83597

Autor SHA1 Mensaje Fecha
  Administrator 1321a83597 Merge remote-tracking branch 'origin/master' hace 3 años
  Administrator 4baf0386c3 修改激活验证的漏洞, 新增运行时激活验证 hace 3 años

+ 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;
+    }
 }