guoziyun 11 miesięcy temu
rodzic
commit
ce6b66f00c
1 zmienionych plików z 1 dodań i 1 usunięć
  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;