guoziyun 11 月之前
父節點
當前提交
ce6b66f00c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routes/v2/coloring-page-collection.js

+ 1 - 1
routes/v2/coloring-page-collection.js

@@ -16,7 +16,7 @@ router.get('/', process());
 function process() {
   return (req, res, next) => {
     (async function () {
-      let uri = req.originalUrl.substring(1);
+      let uri = req.baseUrl;
       let cacheKey = `${CACHE_PREFIX}_${uri}`;
       let htmlData = await redis.getAsync(cacheKey);
       // htmlData = null;