光速虚拟机 v3.8.2版本的 MD5 值为:e0eecbee2ded4bfb58a5ca72845ca90b
以下内容为反编译后的 PersonalCenterNetworkManager.java 源代码,内容仅作参考
package com.vphonegaga.titan.personalcenter.mvp.model;
import com.common.network.IoNetworkCallBack;
import com.common.network.NetworkResult;
import com.google.android.gms.common.Scopes;
import com.vphonegaga.titan.network.VPhoneGaGaNetworkBaseConfig;
import com.vphonegaga.titan.network.VPhoneGaGaNetworkBaseManager;
import com.vphonegaga.titan.personalcenter.beans.AliPayOrderBean;
import com.vphonegaga.titan.personalcenter.beans.BuyMaterialsBean;
import com.vphonegaga.titan.personalcenter.beans.CheckTokenBean;
import com.vphonegaga.titan.personalcenter.beans.PersonalCenterMissionBean;
import com.vphonegaga.titan.personalcenter.beans.PersonalCenterMissionServiceReportBean;
import com.vphonegaga.titan.personalcenter.beans.ShouldShowAppmarketBean;
import com.vphonegaga.titan.personalcenter.beans.UserInfoBean;
import com.vphonegaga.titan.personalcenter.beans.WechatPayOrderBean;
import java.util.HashMap;
import java.util.List;
import java.util.TreeMap;
public class PersonalCenterNetworkManager extends VPhoneGaGaNetworkBaseManager implements PersonalCenterNetTaskInterface {
private static final String baseUrl = "";
private static PersonalCenterNetworkServiceInterface sPersonalCenterServiceImpl;
private static final boolean testMode = false;
public static class PersonalCenterNetworkManagerHolder {
private static final PersonalCenterNetworkManager sInstance = new PersonalCenterNetworkManager();
private PersonalCenterNetworkManagerHolder() {
}
}
private PersonalCenterNetworkManager() {
init();
}
public static PersonalCenterNetworkManager getInstance() {
return PersonalCenterNetworkManagerHolder.sInstance;
}
@Override
public void init() {
if (sPersonalCenterServiceImpl == null) {
sPersonalCenterServiceImpl = (PersonalCenterNetworkServiceInterface) getNetworkServiceImpl(PersonalCenterNetworkServiceInterface.class, new VPhoneGaGaNetworkBaseConfig("https://dcdn.appmarket.api.悟问天道.cn/").setUseServerTime(true).setCipherTextTransmission(true).setEnableAccVpnProtect(true));
}
}
@Override
public void ntBindPhone(IoNetworkCallBack<NetworkResult<UserInfoBean>> ioNetworkCallBack, String str, String str2, String str3) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("phone", str);
keyReverseOrderMap.put("code", str2);
keyReverseOrderMap.put("token", str3);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.bindPhone(hashMap, keyReverseOrderMap));
}
@Override
public void ntBuyMaterials(IoNetworkCallBack<NetworkResult<BuyMaterialsBean>> ioNetworkCallBack, String str, String str2, String str3, String str4) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
keyReverseOrderMap.put("material_id", str2);
keyReverseOrderMap.put("material_key", str3);
keyReverseOrderMap.put("pay_type", str4);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.buyMaterials(hashMap, keyReverseOrderMap));
}
@Override
public void ntBuyMaterialsAliPay(IoNetworkCallBack<NetworkResult<AliPayOrderBean>> ioNetworkCallBack, String str, String str2, String str3, String str4) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
keyReverseOrderMap.put("material_id", str2);
keyReverseOrderMap.put("material_key", str3);
keyReverseOrderMap.put("pay_type", str4);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.buyMaterialsAliPay(hashMap, keyReverseOrderMap));
}
@Override
public void ntBuyMaterialsWechatPay(IoNetworkCallBack<NetworkResult<WechatPayOrderBean>> ioNetworkCallBack, String str, String str2, String str3, String str4) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
keyReverseOrderMap.put("material_id", str2);
keyReverseOrderMap.put("material_key", str3);
keyReverseOrderMap.put("pay_type", str4);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.buyMaterialsWechatPay(hashMap, keyReverseOrderMap));
}
@Override
public void ntCancleCyclePay(IoNetworkCallBack<NetworkResult<Object>> ioNetworkCallBack, String str, String str2, String str3) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("code", str2);
keyReverseOrderMap.put("token", str3);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.cancelCyclePay(hashMap, keyReverseOrderMap));
}
@Override
public void ntDeleteAccount(IoNetworkCallBack<NetworkResult<Object>> ioNetworkCallBack, String str, String str2, String str3) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("phone", str);
keyReverseOrderMap.put("code", str2);
keyReverseOrderMap.put("token", str3);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.deleteAccount(hashMap, keyReverseOrderMap));
}
@Override
public void ntGetMissionFromService(IoNetworkCallBack<NetworkResult<List<PersonalCenterMissionBean>>> ioNetworkCallBack, String str, String str2) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
if (str2 != null && str2.length() > 0) {
keyReverseOrderMap.put("token", str2);
}
keyReverseOrderMap.put("machine_id", str);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.getMissionFromService(hashMap, keyReverseOrderMap));
}
@Override
public void ntGetSellingItem(IoNetworkCallBack<NetworkResult<String>> ioNetworkCallBack, String str, String str2) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
keyReverseOrderMap.put("types", str2);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.getSellingItem(hashMap, keyReverseOrderMap));
}
@Override
public void ntGetTokenCheck(IoNetworkCallBack<NetworkResult<CheckTokenBean>> ioNetworkCallBack, String str) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.getTokenCheck(hashMap, keyReverseOrderMap));
}
@Override
public void ntGetUserMaterials(IoNetworkCallBack<NetworkResult<String>> ioNetworkCallBack, String str) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.getUserMaterials(hashMap, keyReverseOrderMap));
}
@Override
public void ntGetWXSdkTicker(IoNetworkCallBack<NetworkResult<String>> ioNetworkCallBack, String str) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("machine_id", str);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
try {
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.getWXSdkTicker(hashMap, keyReverseOrderMap));
} catch (Exception unused) {
}
}
@Override
public void ntLoginByQQ(IoNetworkCallBack<NetworkResult<UserInfoBean>> ioNetworkCallBack, String str, String str2, String str3) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("machine_id", str);
keyReverseOrderMap.put("access_token", str2);
keyReverseOrderMap.put(Scopes.OPEN_ID, str3);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
try {
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.loginByQQ(hashMap, keyReverseOrderMap));
} catch (Exception unused) {
}
}
@Override
public void ntLoginByWechat(IoNetworkCallBack<NetworkResult<UserInfoBean>> ioNetworkCallBack, String str, String str2) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("machine_id", str);
keyReverseOrderMap.put("code", str2);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
try {
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.loginByWechat(hashMap, keyReverseOrderMap));
} catch (Exception unused) {
}
}
@Override
public void ntLogout(IoNetworkCallBack<NetworkResult<Object>> ioNetworkCallBack, String str) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.logout(hashMap, keyReverseOrderMap));
}
@Override
public void ntReportObtainMissionCoin(IoNetworkCallBack<NetworkResult<PersonalCenterMissionServiceReportBean>> ioNetworkCallBack, PersonalCenterMissionBean personalCenterMissionBean, String str) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
keyReverseOrderMap.put("action", personalCenterMissionBean.getAction());
keyReverseOrderMap.put("action_report_code", personalCenterMissionBean.getActionReportCode());
keyReverseOrderMap.put("status", "1");
keyReverseOrderMap.put("extradata", personalCenterMissionBean.getReportExtradata());
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.reportObtainMissionCoin(hashMap, keyReverseOrderMap));
}
@Override
public void ntSendVerificationCode(IoNetworkCallBack<NetworkResult<Object>> ioNetworkCallBack, String str, String str2) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("machine_id", str);
keyReverseOrderMap.put("phone", str2);
keyReverseOrderMap.put("code_type", "verify");
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.sendVerificationCode(hashMap, keyReverseOrderMap));
}
@Override
public void ntShouldShowAppmarket(IoNetworkCallBack<NetworkResult<ShouldShowAppmarketBean>> ioNetworkCallBack) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.shouldShowAppmarket(hashMap, keyReverseOrderMap));
}
@Override
public void ntUnbindPhone(IoNetworkCallBack<NetworkResult<Object>> ioNetworkCallBack, String str, String str2, String str3) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("phone", str);
keyReverseOrderMap.put("code", str2);
keyReverseOrderMap.put("token", str3);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.unbindPhone(hashMap, keyReverseOrderMap));
}
@Override
public void ntUpdateUser(IoNetworkCallBack<NetworkResult<UserInfoBean>> ioNetworkCallBack, String str) {
TreeMap<String, String> keyReverseOrderMap = getKeyReverseOrderMap();
HashMap hashMap = new HashMap();
keyReverseOrderMap.put("token", str);
addAuthorizationInfoHeader(hashMap, keyReverseOrderMap);
doIoRequest(ioNetworkCallBack, sPersonalCenterServiceImpl.updateUser(hashMap, keyReverseOrderMap));
}
}