Commit 96fec3ee authored by 宋新宇's avatar 宋新宇

小说消费取缓存

parent b184d4ad
......@@ -47,7 +47,7 @@ public class ParameterSetupFlow extends NodeFlow<NovelAction> {
//匹配设备ID
for(DeviceType type:DeviceType.values()){
deviceIdKey = type.getDeviceId(clientInfo);
if(null != deviceIdKey && null != (deliveryDeviceInfo = up.get(DeliveryDeviceInfo.class,assembleKey(deviceIdKey,platformId)))){
if(null != deviceIdKey && null != (deliveryDeviceInfo = up.get(DeliveryDeviceInfo.class,assembleKey(deviceIdKey,platformId,type)))){
clientInfo.setOaid(deliveryDeviceInfo.getOaid()); //回补OAID
action.setDeliveryDeviceInfo(deliveryDeviceInfo);
action.setDeviceType(type);
......@@ -74,7 +74,10 @@ public class ParameterSetupFlow extends NodeFlow<NovelAction> {
}
}
public String assembleKey(String deviceId, int platformId) {
return String.format("getClickByIdfaAndPlatformId:%s:%d", SecureUtil.md5(deviceId), platformId);
public String assembleKey(String deviceId, int platformId,DeviceType type) {
if (DeviceType.IP == type) {
return String.format("mck:%s:%d", SecureUtil.md5(deviceId), platformId);
}
return String.format("getClickByIdfaAndPlatformId_%s_%d", SecureUtil.md5(deviceId), platformId);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment