...
|
...
|
@@ -131,7 +131,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
stringBuffer = stringBuffer.append("&p=").append(event_value);
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(user_id) && user_id.matches("[0-9]+")) {
|
|
|
stringBuffer = stringBuffer.append("&user_id=").append(user_id);
|
|
|
stringBuffer = stringBuffer.append("&uid=").append(user_id);
|
|
|
}
|
|
|
if (client_type.equalsIgnoreCase(ClientTypeEnum.ANDROID.getName())) {
|
|
|
//如果是浏览商品和加入购物车则需要传p=商品编号
|
...
|
...
|
@@ -196,7 +196,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
stringBuffer = stringBuffer.append("&iam=").append(iam);
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(user_id) && user_id.matches("[0-9]+")) {
|
|
|
stringBuffer = stringBuffer.append("&user_id=").append(user_id);
|
|
|
stringBuffer = stringBuffer.append("&uid=").append(user_id);
|
|
|
}
|
|
|
if (orderStatus.equals("1") || orderStatus.equals("2")) {
|
|
|
stringBuffer = stringBuffer.append("&gl=9466");
|
...
|
...
|
@@ -209,13 +209,13 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
}
|
|
|
|
|
|
private UnionResponse sendUrl(String url) {
|
|
|
log.info("sendUrl url is {}", url);
|
|
|
log.info("pinyou sendUrl url is {}", url);
|
|
|
try {
|
|
|
url = URLDecoder.decode(url, "UTF-8");
|
|
|
Pair<Integer, String> pair = HttpUtils.httpGet(url);
|
|
|
log.info("pinyou sendUrl union success url={}, and result={}", url, pair);
|
|
|
if (pair.getLeft() != 200) {
|
|
|
log.warn("callback error with request={}", url);
|
|
|
log.warn("pinyou callback error with request={}", url);
|
|
|
return new UnionResponse(204, "callback error");
|
|
|
}
|
|
|
} catch (Exception e) {
|
...
|
...
|
|