更改域名为ghzs666.com,下载服务那边暂时会多支持一个download/apk/apk2.ghzhushou.com
This commit is contained in:
@ -230,7 +230,7 @@ public class ViewImageActivity extends Activity implements OnPageChangeListener
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
String newUrl = "http://image.ghzhushou.com/pic/hq" + url.substring(url.lastIndexOf("/"));
|
||||
String newUrl = "http://image.ghzs666.com/pic/hq" + url.substring(url.lastIndexOf("/"));
|
||||
HttpURLConnection connection = (HttpURLConnection) new URL(newUrl).openConnection();
|
||||
connection.setRequestMethod("GET");
|
||||
connection.setConnectTimeout(5 * 1000);
|
||||
@ -314,8 +314,8 @@ public class ViewImageActivity extends Activity implements OnPageChangeListener
|
||||
if (scaleType != null || isOrientation) {
|
||||
imageView.getHierarchy().setActualImageScaleType(ScalingUtils.ScaleType.FIT_CENTER);
|
||||
}
|
||||
if (!url.startsWith("http://image.ghzhushou.com/pic/hq/") && url.startsWith("http://image.ghzhushou.com/pic/")) {
|
||||
String hqUrl = "http://image.ghzhushou.com/pic/hq" + url.substring(url.lastIndexOf("/"));
|
||||
if (!url.startsWith("http://image.ghzs666.com/pic/hq/") && url.startsWith("http://image.ghzs666.com/pic/")) {
|
||||
String hqUrl = "http://image.ghzs666.com/pic/hq" + url.substring(url.lastIndexOf("/"));
|
||||
if (imagePipeline.isInBitmapMemoryCache(Uri.parse(hqUrl))) { // 检查高清图是否被缓存
|
||||
loadImage(hqUrl, imageView);
|
||||
} else {
|
||||
@ -376,7 +376,7 @@ public class ViewImageActivity extends Activity implements OnPageChangeListener
|
||||
|
||||
private void findImageBM() {
|
||||
String key = urls.get(viewimage_vp_show.getCurrentItem());
|
||||
String hdKey = "http://image.ghzhushou.com/pic/hq" + key.substring(key.lastIndexOf("/"));
|
||||
String hdKey = "http://image.ghzs666.com/pic/hq" + key.substring(key.lastIndexOf("/"));
|
||||
ImagePipeline imagePipeline = Fresco.getImagePipeline();
|
||||
String curUrl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user