...
|
...
|
@@ -14,6 +14,7 @@ import com.yoho.unions.common.enums.SourceEnum; |
|
|
import com.yoho.unions.common.redis.RedisValueCache;
|
|
|
import com.yoho.unions.common.utils.DateUtil;
|
|
|
import com.yoho.unions.common.utils.HttpUtils;
|
|
|
import com.yoho.unions.common.utils.RandomUtil;
|
|
|
import com.yoho.unions.dal.IMktMarketingUrlDAO;
|
|
|
import com.yoho.unions.dal.IUnionActivityLogsDAO;
|
|
|
import com.yoho.unions.dal.IUnionClickLogsDAO;
|
...
|
...
|
@@ -341,17 +342,34 @@ public class DingdangServiceImpl implements DingdangService { |
|
|
return response;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public UnionResponse addYas(ClickUnionRequestBO request){
|
|
|
|
|
|
String unionType = request.getUnion_type();
|
|
|
String ak = "yohoboys_m";
|
|
|
String cd = unionType;
|
|
|
String random = RandomUtil.getRandom(5);
|
|
|
int ts = DateUtil.getCurrentTimeSecond();
|
|
|
//唯一标示;与大数据产品确认用时间戳+5
|
|
|
String cd = ts+random;
|
|
|
|
|
|
String ckf="Y";
|
|
|
String op = "YN_DOWNLOAD_C";
|
|
|
int ts = DateUtil.getCurrentTimeSecond();
|
|
|
|
|
|
StringBuffer sf = new StringBuffer();
|
|
|
// sf.append(yasUrl).append("?h=").append()
|
|
|
return null;
|
|
|
String url = sf.append(yasUrl).append("?h==m.yohobuy.com")
|
|
|
.append("&p=&u=/&ft=117&fst=410&sv=2.1.1&ab=&apf=N")
|
|
|
.append("&ak=").append(ak).append("&cd=").append(cd)
|
|
|
.append("&vd=14839465348061412675814&ud=&rf=").append("&ckf=").append(ckf)
|
|
|
.append("&ts=").append(ts).append("&mktc=").append(unionType)
|
|
|
.append("&op=").append(op)
|
|
|
.append("&sr=360x640&wr=360x640&sd=32&ln=zh-CN&sy=Linux%20aarch64&ce=true&fv=0").toString();
|
|
|
Pair<Integer, String> pair = HttpUtils.httpGet(url);
|
|
|
log.info("addYas sendUrl union success url={}, and result={}", url, pair);
|
|
|
if (pair.getLeft() != 200) {
|
|
|
log.warn("addYas callback error with request={}", url);
|
|
|
return new UnionResponse(204, "callback error");
|
|
|
}
|
|
|
return new UnionResponse();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|