Authored by tanling

union_data在unionCookie里面

... ... @@ -55,6 +55,16 @@ public class UserOrders {
//目前没有使用
private Integer isPush;
private String unionData;
public String getUnionData() {
return unionData;
}
public void setUnionData(String unionData) {
this.unionData = unionData;
}
public Integer getId() {
return id;
}
... ...
... ... @@ -63,8 +63,7 @@ public class OrderPushConsumer implements CommonMessageConsumer {
// 将从订单那边传过来的union_data 存进db
JSONObject jsonObject = JSON.parseObject(orderData);
String unionData = jsonObject.getString("union_data");
String unionData = userOrders.getUnionData();
if (org.apache.commons.lang3.StringUtils.isNotBlank(unionData)){
UserOrdersRelation userOrdersRelation = new UserOrdersRelation();
... ... @@ -81,6 +80,8 @@ public class OrderPushConsumer implements CommonMessageConsumer {
JSONObject jsonObject = JSON.parseObject(orderData);
JSONObject unionCookie = JSONObject.parseObject(jsonObject.getString("unionCookie"));
UserOrders userOrders = new UserOrders();
userOrders.setUnionData(unionCookie.getString("union_data"));
//联盟id
userOrders.setUid(jsonObject.getString("clientId"));
... ...