Commit 10acc4bb by 王祖波

log

parent 590d1c73
......@@ -16,6 +16,7 @@ import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.bouncycastle.crypto.MacDerivationFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -546,6 +547,7 @@ public class MaterialApiServiceImpl implements MaterialApiService {
}
if (json.getErrorCode() == 0) {
String mediaId= json.getResult().toString() ;
logger.info("设置缓存key:{},value:{}", key, mediaId);
RedisUtil.setCache(key, mediaId, 1L, TimeUnit.DAYS);
return com.gic.api.base.commons.ServiceResponse.success(mediaId) ;
}else {
......
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