fix(route): coolapk external share (#11651)

This commit is contained in:
Tony 2023-01-19 12:26:43 -03:00 committed by GitHub
parent 95dba06d1d
commit a3bd12171f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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: