Authored by zhengwen.ge

update

... ... @@ -31,7 +31,7 @@ public class Test {
String encryptKey = "test_encrypt_key";
String signKey = "test_sign_key";
String muid4MD5 = "0f074dc8e1f0547310e729032ac0730b";
String url = "http://jump.t.l.qq.com/conv/app/";
String url = "http://t.gdt.qq.com/conv/app/";
//有货在智慧推的账号id
String uid = "18261";
... ... @@ -55,9 +55,9 @@ public class Test {
// url = unionConfig.getUrl();
// }
//APPID可以固定根据clientType判断
String appId = "490655927";
String appId = "112233";
if(clientType.equals(ClientTypeEnum.ANDROID.getName())){
appId = "100898104";
appId = "112233";
}
int conv_time = DateUtil.getCurrentTimeSecond();
String page = null;
... ... @@ -65,8 +65,8 @@ public class Test {
StringBuffer bf = new StringBuffer();
StringBuffer sf = new StringBuffer();
page = bf.append(url).append(appId).append("/conv?muid=").append(muid4MD5).append("&conv_time=").append(conv_time).append("&value=").append(new BigDecimal(1).multiply(new BigDecimal(100))).toString();
query_string = sf.append("muid=").append(muid4MD5).append("&conv_time=").append(conv_time).append("&value=").append(transInfo.getOrderAmount().multiply(new BigDecimal(100))).toString();
page = bf.append(url).append(appId).append("/conv?muid=").append(muid4MD5).append("&conv_time=").append(conv_time).append("&client_ip=10.11.12.13").append("&value=").append(new BigDecimal(1).multiply(new BigDecimal(100))).toString();
query_string = sf.append("muid=").append(muid4MD5).append("&conv_time=").append(conv_time).append("&client_ip=10.11.12.13").append("&value=").append(new BigDecimal(1).multiply(new BigDecimal(100))).toString();
// 对url进行加密
String encode_page = null;
... ... @@ -99,9 +99,9 @@ public class Test {
}
// conv_type,,现在只有移动应用激活类型(MOBILEAPP_ACTIVITE);
String convType = "MOBILEAPP_COST";
if(transInfo.getType().equals("1")){
convType = "MOBILEAPP_ADDTOCART";
}
// if(transInfo.getType().equals("1")){
// convType = "MOBILEAPP_ADDTOCART";
// }
StringBuffer sb = new StringBuffer();
url = sb.append(url).append(appId).append("/conv?v=").append(retRep).append("&conv_type=").append(convType).append("&app_type=").append(clientTypeConver(clientType)).append("&advertiser_id=").append(uid).toString();
log.info("GdtTransTask url is {}", url);
... ...