From a3bd12171f288301bef9402235334b29ad6002e6 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 19 Jan 2023 12:26:43 -0300 Subject: [PATCH] fix(route): coolapk external share (#11651) --- lib/v2/coolapk/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/v2/coolapk/utils.js b/lib/v2/coolapk/utils.js index 3aae4fedd..fd4e26133 100644 --- a/lib/v2/coolapk/utils.js +++ b/lib/v2/coolapk/utils.js @@ -6,8 +6,8 @@ const { parseDate } = require('@/utils/parse-date'); const dynamicTpye = { 0: '基本动态', 8: '酷图', 9: '评论', 10: '提问', 11: '回答', 12: '图文', 15: '二手', 17: '观点', 20: '交易动态' }; const getRandomDEVICE_ID = () => { - let id = [8, 4, 4, 4, 12]; - id = id.map((i) => Math.random().toString(36).substr(2, i)); + let id = [10, 6, 6, 6, 14]; + id = id.map((i) => Math.random().toString(36).substring(2, i)); return id.join('-'); }; @@ -68,6 +68,7 @@ const parseDynamic = async (item, ctx) => { switch (type) { case 0: case 5: + case 7: // external share case 8: case 9: case 10: