Skip to content

Commit 258ab9b

Browse files
authored
Merge pull request nining377#320 from yujincheng08/fix
Fix two issues
2 parents ce8fdda + 91647f8 commit 258ab9b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

app/src/main/java/com/raincat/dolby_beta/helper/ScriptHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static SSLSocketFactory getSSLSocketFactory(Context context) {
136136
SSLContext sslContext = null;
137137
try {
138138
File ca = new File(getScriptPath(context) + File.separator + "ca.crt");
139-
if (ca.exists()) {
139+
if (!SettingHelper.getInstance().getSetting(SettingHelper.proxy_server_key) && ca.exists()) {
140140
InputStream certificate = new FileInputStream(ca);
141141
Certificate certificate1 = CertificateFactory.getInstance("X.509").generateCertificate(certificate);
142142
KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
@@ -164,4 +164,4 @@ public static SSLSocketFactory getSSLSocketFactory(Context context) {
164164
else
165165
return null;
166166
}
167-
}
167+
}

app/src/main/java/com/raincat/dolby_beta/model/NeteaseSongListBean.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public static class DataBean {
5353
private FreeTrialInfoBean freeTrialInfo;
5454
private String level;
5555
private String encodeType;
56+
private int peak;
57+
private int time;
5658

5759
public long getId() {
5860
return id;
@@ -190,6 +192,22 @@ public void setEncodeType(String encodeType) {
190192
this.encodeType = encodeType;
191193
}
192194

195+
public int getPeak() {
196+
return peak;
197+
}
198+
199+
public void setPeak(int peak) {
200+
this.peak = peak;
201+
}
202+
203+
public int getTime() {
204+
return time;
205+
}
206+
207+
public void setTime(int time) {
208+
this.time = time;
209+
}
210+
193211
public static class FreeTrialInfoBean {
194212
private int start;
195213
private int end;

0 commit comments

Comments
 (0)