号簿助手 v4.6.31版本的 MD5 值为:9d7ff98a6bb5cc178eac2df4d1b2f0e0
以下内容为反编译后的 StaticsReq.java 源代码,内容仅作参考
package com.yulore.superyellowpage.req;
import android.net.Uri;
import com.ricky.android.common.http.NetUtils;
import com.ricky.android.common.job.AsyncHttpRequest;
import com.yulore.superyellowpage.utils.Constant;
import java.io.IOException;
import java.net.SocketTimeoutException;
import org.apache.http.client.ClientProtocolException;
public class StaticsReq extends AsyncHttpRequest {
private String data;
private String shopId;
private int type;
private String url;
public StaticsReq(int type, String shopId, String data) {
this.type = type;
this.shopId = shopId;
this.data = data;
}
@Override
public void run() {
try {
switch (this.type) {
case 0:
this.url = "https://www.dianhua.cn/o2o/chkbal/";
break;
case 1:
this.url = "https://www.dianhua.cn/detail/" + this.shopId + "?t=" + this.data;
break;
case 2:
this.url = "https://www.dianhua.cn/detail/" + this.shopId + "/moretels/";
break;
case 4:
this.url = "https://www.dianhua.cn/detail/" + this.shopId + "/map/";
break;
case 5:
this.url = "https://www.dianhua.cn/detail/" + this.shopId + "/website/";
break;
case 6:
this.url = "https://www.dianhua.cn/citylist";
break;
case 7:
this.url = "https://www.dianhua.cn/detail/" + this.shopId;
break;
}
try {
try {
String requestUrl = "https://apis-telecom.dianhua.cn/o2o/stat/?uid=" + Constant.GLOBLE_DEVICE_ID + "&apikey=" + Constant.API_KEY + "&app=" + Constant.APP_NAME + "&url=" + Uri.encode(this.url);
setReqUrl(requestUrl);
NetUtils.get(this);
} catch (SocketTimeoutException e) {
e.printStackTrace();
}
} catch (ClientProtocolException e2) {
e2.printStackTrace();
} catch (IOException e3) {
e3.printStackTrace();
}
} catch (Exception e4) {
e4.printStackTrace();
}
}
}