瀏覽代碼

轨迹完成

shs 1 年之前
父節點
當前提交
cc461fb425

+ 3 - 3
aidex-admin/src/main/resources/application.yml

@@ -70,13 +70,13 @@ spring:
   # redis 配置
   redis:
     # 地址
-    host: 127.0.0.1
+    host: 192.168.1.243
     # 端口,默认为6379
-    port: 16379
+    port: 6379
     # 数据库索引
     database: 0
     # 密码
-    # password: 12345678
+    password: 12345678
     # 连接超时时间
     timeout: 10s
     lettuce:

+ 1 - 1
aidex-quartz/src/main/java/com/aidex/quartz/task/RefreshMdsTask.java

@@ -101,7 +101,7 @@ public class RefreshMdsTask {
 					JSONObject token = jsonObjec.getJSONObject("data");
 					if (token != null && StringUtils.isNotEmpty(token.getString("mds"))){
 						redisCache.deleteKey(Constants.GPS_LOGIN_INFO_PREFIX);
-						redisCache.setCacheObject(Constants.GPS_LOGIN_INFO_PREFIX, token.toJSONString(), Constants.GPS_TOKEN_EXPIRATION, TimeUnit.MINUTES);
+						redisCache.setCacheObject(Constants.GPS_LOGIN_INFO_PREFIX, token.toJSONString());
 						redisCache.deleteKey(Constants.GPS_TOKEN_PREFIX);
 						redisCache.setCacheObject(Constants.GPS_TOKEN_PREFIX, token.getString("mds"), Constants.GPS_TOKEN_EXPIRATION, TimeUnit.MINUTES);
 					}else {

+ 1 - 0
aidex-system/src/main/java/com/aidex/common/gps/common/GeneratorGspApi.java

@@ -32,6 +32,7 @@ public class GeneratorGspApi {
         parmas.put("requestSource","web");
         parmas.put("custid",userId);
         parmas.put("school_id",userId);
+        parmas.put("loginUrl","");
         parmas.put("r",System.currentTimeMillis());
 
         StringBuilder builder = new StringBuilder("http://www.18gps.net/user/playback.html");

+ 1 - 1
aidex-system/src/main/java/com/aidex/framework/cache/MyInitializer.java

@@ -57,7 +57,7 @@ public class MyInitializer {
 				JSONObject jsonObjec = JSONObject.parseObject(result);
 				if (jsonObjec.getBoolean("success")){
 					JSONObject token = jsonObjec.getJSONObject("data");
-					redisCache.setCacheObject(Constants.GPS_LOGIN_INFO_PREFIX, token.toJSONString(), Constants.GPS_TOKEN_EXPIRATION, TimeUnit.MINUTES);
+					redisCache.setCacheObject(Constants.GPS_LOGIN_INFO_PREFIX, token.toJSONString());
 					if (token != null && StringUtils.isNotEmpty(token.getString("mds"))){
 						redisCache.setCacheObject(Constants.GPS_TOKEN_PREFIX, token.getString("mds"), Constants.GPS_TOKEN_EXPIRATION, TimeUnit.MINUTES);
 					}else {