Commit c5506590e29532b12db76357d1b952f4e0bb290b

Authored by 张宗朋
1 parent 4ddea257

util

src/main/java/com/cnlive/mz/live/rest/BaseUtil.java
@@ -30,8 +30,8 @@ public class BaseUtil { @@ -30,8 +30,8 @@ public class BaseUtil {
30 private static final String ENCODING = "UTF-8"; 30 private static final String ENCODING = "UTF-8";
31 31
32 // AccessKey、SecretKey 32 // AccessKey、SecretKey
33 - private static final String SECRET_KEY = "iqljE4WxQaSMeSd1QP+PPYSpvtK0uWyH0/r6tgi7";  
34 - private static final String ACCESS_KEY = "I3TC8a4xboN9kSJnUIQh"; 33 + private static final String SECRET_KEY = "UIWPYVeaV8kq2vWImDkLBvWs/pwmTJVF9MCNHDsC";
  34 + private static final String ACCESS_KEY = "fWUN8KDtJZJGo0ArQ4qo";
35 35
36 /* 36 /*
37 * 计算MD5+BASE64 37 * 计算MD5+BASE64
@@ -74,7 +74,7 @@ public class BaseUtil { @@ -74,7 +74,7 @@ public class BaseUtil {
74 } 74 }
75 75
76 /** 76 /**
77 - * 获取当前时间戳 77 + * 获取当前前一天的时间戳
78 * 78 *
79 * @return 79 * @return
80 */ 80 */
@@ -131,8 +131,6 @@ public class BaseUtil { @@ -131,8 +131,6 @@ public class BaseUtil {
131 String method = "GET"; 131 String method = "GET";
132 String expire = BaseUtil.getTimestamp(); 132 String expire = BaseUtil.getTimestamp();
133 String app = "live"; 133 String app = "live";
134 - // String methodadd = methodNname;  
135 - // String name = streamName;  
136 app = java.net.URLEncoder.encode(app, "utf-8"); 134 app = java.net.URLEncoder.encode(app, "utf-8");
137 methodName = java.net.URLEncoder.encode(methodName, "utf-8"); 135 methodName = java.net.URLEncoder.encode(methodName, "utf-8");
138 streamName = java.net.URLEncoder.encode(streamName, "utf-8"); 136 streamName = java.net.URLEncoder.encode(streamName, "utf-8");