...
|
...
|
@@ -328,7 +328,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ |
|
|
public ProductIdentifyResp queryNewIdentifyInfo(String tagId, String nfcUid, Integer uid) throws GatewayException {
|
|
|
logger.info("enter queryNewIdentifyInfo, tagId = {}, nfcUid={}, uid={}", tagId, nfcUid, uid);
|
|
|
//返回结果可能在缓存中
|
|
|
ProductIdentifyResp result = getIdentifyFromCache(tagId, nfcUid);
|
|
|
ProductIdentifyResp result = getNewIdentifyFromCache(tagId, nfcUid);
|
|
|
if(result != null ){
|
|
|
rebuildResult(result, tagId, nfcUid, uid);
|
|
|
logger.info("queryNewIdentifyInfo get result from cache success! tagId = {}, nfcUid={},uid={}, result={} ", tagId, nfcUid, uid, result );
|
...
|
...
|
@@ -842,6 +842,13 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ |
|
|
return identifyResp;
|
|
|
}
|
|
|
|
|
|
private ProductIdentifyResp getNewIdentifyFromCache(String tagId, String nfcUid) {
|
|
|
RedisKeyBuilder kb = new RedisKeyBuilder().appendFixed("ufo:product:newIdentifyResultInfo:").
|
|
|
appendVar(tagId).appendVar(":").appendVar(nfcUid);
|
|
|
ProductIdentifyResp identifyResp = clientCache.get(kb, ProductIdentifyResp.class);
|
|
|
return identifyResp;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询用户基本信息--头像信息(不要取此接口的手机号)
|
|
|
* @return
|
...
|
...
|
|