2 コミット 6ae978956a ... 1321a83597

作者 SHA1 メッセージ 日付
  Administrator 1321a83597 Merge remote-tracking branch 'origin/master' 3 年 前
  Administrator 4baf0386c3 修改激活验证的漏洞, 新增运行时激活验证 3 年 前

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