...
|
...
|
@@ -44,7 +44,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
String client_type = ClientTypeEnum.IOS.getName();
|
|
|
String idfa = requestBO.getIdfa();
|
|
|
String imei = requestBO.getImei();
|
|
|
if(StringUtils.isEmpty(idfa)){
|
|
|
if(idfa.equals("")||StringUtils.isEmpty(idfa)){
|
|
|
client_type = ClientTypeEnum.ANDROID.getName();
|
|
|
os = ClientTypeEnum.ANDROID.getName();
|
|
|
}
|
...
|
...
|
@@ -54,6 +54,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
String jp = "1";
|
|
|
//用户id
|
|
|
String user_id = requestBO.getUser_id();
|
|
|
boolean isNum = user_id.matches("[0-9]+");
|
|
|
//用户行为事件
|
|
|
String event = requestBO.getEvent();
|
|
|
//用户行为数据
|
...
|
...
|
@@ -74,7 +75,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
if(event.equals(EnentValueEnum.ADD_CART.getName())||event.equals(EnentValueEnum.VIEW_ITEM.getName())){
|
|
|
stringBuffer= stringBuffer.append("&p=").append(event_value);
|
|
|
}
|
|
|
if(StringUtils.isNotEmpty(user_id)){
|
|
|
if(StringUtils.isNotEmpty(user_id)&& user_id.matches("[0-9]+")){
|
|
|
stringBuffer = stringBuffer.append("&user_id=").append(user_id);
|
|
|
}
|
|
|
if(client_type.equalsIgnoreCase(ClientTypeEnum.ANDROID.getName())){
|
...
|
...
|
@@ -101,7 +102,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
os=ClientTypeEnum.IOS.getName();
|
|
|
String idfa = requestBO.getIdfa();
|
|
|
String imei = requestBO.getImei();
|
|
|
if(StringUtils.isEmpty(idfa)){
|
|
|
if(idfa.equals("")||StringUtils.isEmpty(idfa)){
|
|
|
client_type = ClientTypeEnum.ANDROID.getName();
|
|
|
os=ClientTypeEnum.ANDROID.getName();
|
|
|
}
|
...
|
...
|
@@ -123,8 +124,7 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
.append(advertiser).append("&os=").append(os)
|
|
|
.append("&ts=").append(currentTime)
|
|
|
.append("&ip=").append(ip)
|
|
|
.append("&df=0").append("&user_id=")
|
|
|
.append(user_id).append("&order=").append(order)
|
|
|
.append("&df=0").append("&order=").append(order)
|
|
|
.append("&money=").append(money)
|
|
|
.append("&plist=").append(plist);
|
|
|
String url = null;
|
...
|
...
|
@@ -137,6 +137,9 @@ public class PinYouServiceImpl implements IPinYouService { |
|
|
String iam = MD5.md5(idfa);
|
|
|
stringBuffer = stringBuffer.append("&iam=").append(iam);
|
|
|
}
|
|
|
if(StringUtils.isNotEmpty(user_id)&& user_id.matches("[0-9]+")){
|
|
|
stringBuffer = stringBuffer.append("&user_id=").append(user_id);
|
|
|
}
|
|
|
if(orderStatus.equals("1")||orderStatus.equals("2")){
|
|
|
stringBuffer = stringBuffer.append("&gl=9466");
|
|
|
}else{
|
...
|
...
|
|