diff --git a/package.json b/package.json index 9ce75418..169cca52 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,6 @@ "knex": "^2.2.0", "lodash": "^4.17.5", "md5": "^2.2.1", - "moment": "^2.24.0", "mozjpeg-js": "^3.3.1", "query-string": "^6.4.2", "react": "^16.7.0", diff --git a/src/command/fetch/customer.ts b/src/command/fetch/customer.ts index 993b7e73..18fbca22 100644 --- a/src/command/fetch/customer.ts +++ b/src/command/fetch/customer.ts @@ -13,6 +13,9 @@ import CommonUtil from '~/src/library/util/common' import * as TypeWeibo from '~/src/type/namespace/weibo' import Util from '~/src/library/util/common' import querystring from 'query-string' +// dayjs需要安装插件后, 才能支持识别复杂文本串 +import customParseFormat from 'dayjs/plugin/customParseFormat' +dayjs.extend(customParseFormat) /** * weibo.com的新Api对应的创建时间解析格式字符串 diff --git a/yarn.lock b/yarn.lock index 51cf3307..0fe38ba3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5611,11 +5611,6 @@ mkdirp@^1.0.3, mkdirp@^1.0.4: resolved "https://registry.npmmirror.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -moment@^2.24.0: - version "2.29.4" - resolved "https://registry.npmmirror.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108" - integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w== - mozjpeg-js@^3.3.1: version "3.3.1" resolved "https://registry.npmmirror.com/mozjpeg-js/-/mozjpeg-js-3.3.1.tgz#06dc28a2c881bc02f9a84eca64fadb1f7a014f2c"